home *** CD-ROM | disk | FTP | other *** search
/ IBM OEM Software Product … CD For PC Manufacturers / IBM OEM Software - Product Sampler CD for PC Manufacturers.iso / InternetIntranets / Notes / LOTUS027.DSK / DOCLIBL4.NTF (.txt) < prev    next >
Lotus Notes Database  |  1997-08-08  |  451KB  |  3,947 lines

  1. Lotus SmartSuite 96 Library (R4)
  2. #1StdR4DocLibLS
  3. Lotus SmartSuite LibStdR4DocLibLS
  4. dR4DocLibLS
  5. FOLDER_DIRECTORY_OBJECT
  6. My Favorite Documents
  7. CN=Lotus Notes Template Development/O=Lotus Notes
  8. *Nb:O
  9. +"Dyv
  10. CN=Catherine Duffy/OU=NAHQ/O=LotusCN=Catherine Duffy/O=IrisLotus NotesCN=Catherine Duffy/O=IrisLotus NotesCN=Lotus Notes Template Development/O=Lotus Notes
  11. #######################################
  12. $Modified
  13.     1S2S3S
  14. $TITLE$FormPrivs$FormUsers$Body$Flags$Class$Modified$Comment$AssistTrigger$AssistType$AssistFlags$UpdatedBy$$FormScript_O
  15.     0SL1S3724
  16. $TITLE
  17. CN=Catherine Duffy/O=Iris##########################################################
  18. CN=Catherine Duffy/O=Irisc:\notes4\data\doclib4.ntf
  19. CN=Ryan Jansen/O=Iris
  20. ########################################
  21. DocumentDocumentDocumentWorkflow
  22. CN=Ryan Jansen/O=IrisCN=Lotus Notes Template Development/O=Lotus NotesCN=Ryan Jansen/O=IrisCN=Lotus Notes Template Development/O=Lotus NotesStdR4DocLibD384D8CD162C248F5060C7F2B99A7A5323E2D00A4F877177E28B3620C121AC8367843E4301C6054E658E2C2D65E5AC9DCN=Lotus Notes Template Development/O=Lotus Notes################################################
  23. ResponseResponse
  24. CN=Ryan Jansen/O=IrisCN=Lotus Notes Template Development/O=Lotus NotesStdR4DocLib
  25. ##########################################################
  26. *Nb:O
  27. Response to ResponseResponse to Response
  28. CN=Ryan Jansen/O=IrisCN=Lotus Notes Template Development/O=Lotus NotesStdR4DocLib###########################
  29. Main Navigator
  30. Debbie BrancoCN=Lotus Notes Template Development/O=Lotus NotesStdR4DocLibG3###############################
  31. CN=Ryan Jansen/O=IrisCN=Lotus Notes Template Development/O=Lotus Notes
  32. ##########################################################
  33. CN=Ryan Jansen/O=IrisCN=Lotus Notes Template Development/O=Lotus Notes
  34. ##########################################################
  35. ##########################################################
  36. O=Lotus Notes
  37. O=Lotus Notes
  38. PURSAFO
  39. |.:#U
  40. O=Lotus Notes
  41. CN=Lotus Notes Template Development/O=Lotus Notes
  42. PURSAFO
  43. Fde!f^^
  44. Y&)j)+K
  45. ]TU//
  46. $ACLDigest
  47. New Document
  48. Subject
  49.     4S6S
  50. "MS Sans Serif
  51. Times New Roman
  52. Helvetica
  53. '++LotusScript Development Environment:2:5:(Options):0:66
  54. Option Public
  55. '++LotusScript Development Environment:2:5:(Forward):0:1
  56. '++LotusScript Development Environment:2:5:(Declarations):0:10
  57. Dim FormW As NotesUIWorkspace
  58. Dim FormDoc As NotesUIDocument
  59.  Document'++LotusScript Development Environment:2:5:(Options):0:66
  60. '++LotusScript Development Environment:2:5:(Forward):0:1
  61. Declare Sub Exiting(Source As Field)
  62. '++LotusScript Development Environment:2:5:(Declarations):0:2
  63. '++LotusScript Development Environment:2:2:BindEvents:1:129
  64. Private Sub BindEvents(Byval Objectname_ As String)
  65.      Static Source As FIELD
  66.      Set Source = Bind(Objectname_)
  67.      On Event Exiting From Source Call Exiting
  68. End Sub
  69. '++LotusScript Development Environment:2:2:Exiting:1:12
  70. Sub Exiting(Source As Field)
  71.      Set FormW = New NotesUIWorkspace
  72.      Set FormDoc = FormW.CurrentDocument
  73.      FormDoc.refresh
  74.      
  75. End Sub
  76. DocumentWorkflow
  77.     DocumentWorkflow Subform
  78.     :  This Subform includes the LotusScript, Actions, and hidden fields which are used in all versions of the Document form.
  79.     Hidden Fields:-------------------------------------------------------------------
  80. DocumentAuthors
  81.     4S6S
  82. DocumentAuthors
  83. Scope
  84. Private
  85. Reviewers
  86.     3S4S6S7S8S10SDocumentReaders
  87. LastEditor
  88. Scope
  89. Private
  90.     1S2S
  91. Scope
  92. Public
  93. Scope
  94.     1S2S3S4S
  95. %12-/H
  96. !G,$W,#I4)X6(H,4W,4G98X<6h*#x+$g9)w8(h.6u-2g<5w<4>B=YA
  97. WC9iB.xC-iF8wH8jT>zR<rd?
  98. 2L3;FK=D
  99. j=C:FQ8Qp<b
  100. GEHXHGLQLZSKEKUVKSGRYYWWgJEvIEiTHyWFfLRwKSgYWwZV[cXtfYPZjl\dWfphhhvigkqlysjhktvlsjtxyww
  101. Subject
  102.     0S0E
  103. SubjectRequired: description of this document 
  104.     Created By:    
  105. FromDocument author name
  106.      on 
  107. DateThe date/time when the document was composed
  108.      at 
  109. TimeCreated
  110.     Category
  111. Miscellaneous
  112. CategoriesPress ENTER for list of keywords or to add a new keyword
  113. ($All)
  114.     4S6S
  115. ExpireDate
  116.     1S2S
  117. The document and its responses will be archived 
  118. on a schedule determined by the Archive Profile
  119.     This document was marked expired on
  120. ExpireDate
  121. ExpireDateDisplay
  122. Status
  123. StatusListv
  124.     4S6S7S8S9S10S11S
  125. Review Cycle Information
  126. Status
  127. StatusListv
  128.     4S6S7S8S9S
  129. Paintbrush cann
  130. this file becaus
  131.  created using a
  132.  of Windows earl
  133.  3.0.
  134. Save As
  135.  From
  136. Copy To
  137. Save Colors As
  138. Printing '%s' on
  139. on %s
  140. Page %d of
  141. % donelNot enoug
  142.  to print.
  143. more application
  144. rease available 
  145.     Originator
  146.     Previous reviewers
  147.     Current Reviewers
  148.     Future reviewers
  149. tmpOriginator
  150. PreviousReviewers
  151. PreviousReviewers
  152. CurrentReviewers
  153. CurrentReviewers
  154. FutureReviewers
  155. FutureReviewers
  156. Status
  157. StatusListv
  158.     4S6S7S8S9S
  159. Paintbrush cann
  160. this file becaus
  161.  created using a
  162.  of Windows earl
  163.  3.0.
  164. Save As
  165.  From
  166. Copy To
  167. Save Colors As
  168. Printing '%s' on
  169. on %s
  170. Page %d of
  171. % donelNot enoug
  172.  to print.
  173. more application
  174. rease available 
  175.     Originator
  176.     Reviewers
  177.     Review Options
  178. tmpOriginator_1
  179. Reviewers
  180. Reviewers
  181. ReviewersEnter the reviewers' names (do not use Group names)
  182. ReviewStyle
  183. ReviewStyle
  184. Serial review | Serial.NoVersionsSerial (keep all revisions) | Serial.VersionsDocument reservations | Parallel.NoVersionsResponse review | Parallel.Versions
  185. ReviewWindow
  186. ReviewWindow
  187. No time limit for each review | NoLimitMove to next reviewer after: | MoveOnKeep sending reminders after: | Reminder
  188. ReviewTime
  189. ReviewTime
  190. ReviewWindow
  191. NoLimit
  192. day(s)
  193.     3S4S6S8S
  194. tmpReviewUnits
  195. NotifyAfter
  196. NotifyAfter
  197. Notify originator after each reviewer | EachNotify originator after final reviewer | Final
  198. BodyEnter the text (or a description) of the document.
  199.     ...........................
  200. ReviewerLog
  201.     1S2S3S4S
  202. Reviewer Log
  203. ReviewerLog
  204.     1S2S
  205. ReviewerLog
  206. ReviewerLog
  207. Close
  208.     0S0E
  209. _Edit Document
  210. DocumentAuthors
  211.     9S15S
  212. Categori_ze_
  213. _Forward
  214. _Move to Folder...
  215. _Remove from Folder
  216. Send Docu_ment
  217. O=Lotus Notes
  218. O=Lotus Notes
  219. PURSAFO
  220. |.:#U
  221. O=Lotus Notes
  222. CN=Lotus Notes Template Development/O=Lotus Notes
  223. PURSAFO
  224. Fde!f^^
  225. $TITLE
  226. $Info
  227. $SubForms
  228. $WindowTitle
  229. $Script
  230. $$Script_O
  231. $$ScriptName
  232. $$Reviewers
  233. $Reviewers_O
  234. TimeCreated
  235. $Body
  236. $ACTIONS
  237. OriginalSubject
  238. OriginalSubject
  239. OriginalSubject
  240. Subject
  241.     1S2S3S10S12S
  242. NewRespTitle
  243. New Response to "
  244. OriginalSubject
  245.     0R1S2S3S4S5S6S
  246. StandardTitle
  247. Response 
  248.  of "
  249.  to "
  250. OriginalSubject
  251.     0R1S2S3S4S8S9S10S11S12S13S14S15S16S17S
  252. NewRespTitle
  253. StandardTitle
  254.     0R4S6S
  255. "MS Sans Serif
  256. Times New Roman
  257.  Response
  258. @___@
  259. <a>7`^
  260. `!bb!R
  261. SubjectKey thought of this response
  262.     Created by
  263. FromThe name of the person who composed the response
  264. DateThe date/time when the document was composed
  265. TimeCreated
  266. ExpireDate
  267.     1S2S
  268. The document and its responses will be archived 
  269. on a schedule determined by the Archive Profile
  270.     This document was marked expired on
  271. ExpireDate
  272. ExpireDateDisplay
  273. @___@
  274. <a>7`^
  275. `!bb!R
  276. BodyEnter the text of your response
  277.     -------------------------------------------------------------------------------------------------------------------------------------------------
  278.     Hidden Fields:    
  279. OriginalSubject
  280. OriginalSubject
  281. Subject
  282.     7S9S
  283. OriginalSubjectHidden field to store topic of Main Document
  284. Closes 
  285.     0S0E
  286. _Edit Document
  287. Categori_zeb
  288. Send Docu_ment
  289. _Forward
  290. _Move to Folder...
  291. _Remove from Folder?
  292. O=Lotus Notes
  293. O=Lotus Notes
  294. PURSAFO
  295. |.:#U
  296. O=Lotus Notes
  297. CN=Lotus Notes Template Development/O=Lotus Notes
  298. PURSAFO
  299. Fde!f^^
  300. $TITLE
  301. $Info
  302. $WindowTitle
  303. $$Script_O
  304. $$ScriptName
  305. TimeCreated
  306. $Body
  307. $ACTIONS
  308. NewDocTitle
  309. New Response to "
  310. Subject
  311.     1S2S3S4S5S6S
  312. StandardTitle
  313. Response to "
  314. ImmediateParentSubject"
  315.     0R1S2S3S4S5S6S
  316. NewDocTitle
  317. StandardTitle
  318.     0R4S6S
  319. "MS Sans Serif
  320. Times New Roman
  321.  Response to Response
  322. @___@
  323. <a>7`^
  324. `!bb!R
  325. SubjectKey thought of this response
  326.     Created by:
  327. FromThe name of the person who composed the response
  328. DateThe date/time when the document was composed
  329. TimeCreated
  330. ExpireDate
  331.     1S2S
  332. The document and its responses will be archived 
  333. on a schedule determined by the Archive Profile
  334.     This document was marked expired on
  335. ExpireDate
  336. ExpireDateDisplay
  337. @___@
  338. <a>7`^
  339. `!bb!R
  340. BodyEnter the text of your response
  341.     -------------------------------------------------------------------------------------------------------------------------------------------------
  342.     Hidden Fields:    
  343. OriginalSubject
  344. OriginalSubject
  345. Subject
  346.     7S9S
  347. OriginalSubjectHidden field to store topic of Main Document
  348. Subject
  349. Subject
  350. OriginalSubject
  351.     7S9S
  352. ImmediateParentSubject
  353. Closeu 
  354.     0S0E
  355. _Edit Document
  356. Categori_ze
  357. Send Docu_ment
  358. _Forward
  359. _Move to Folder...
  360. _Remove from Folder
  361. O=Lotus Notes
  362. O=Lotus Notes
  363. PURSAFO
  364. |.:#U
  365. O=Lotus Notes
  366. CN=Lotus Notes Template Development/O=Lotus Notes
  367. PURSAFO
  368. Fde!f^^
  369. $TITLE
  370. $Info
  371. $WindowTitle
  372. $$Script_O
  373. $$ScriptName
  374. TimeCreated
  375. $Body
  376. $ACTIONS
  377. Delete 
  378.     0S0E
  379. _Forward
  380. Categori_ze
  381. Edit Message
  382. Out Of the Office
  383. Out Of Office Profile
  384. _Move to Folder...
  385. _Remove from Folder...
  386. O=Lotus Notes
  387. O=Lotus Notes
  388. PURSAFO
  389. |.:#U
  390. O=Lotus Notes
  391. CN=Lotus Notes Template Development/O=Lotus Notes
  392. PURSAFO
  393. Fde!f^^
  394. $Index
  395. $Formula
  396. $FormulaClass
  397. $VIEWFORMAT
  398. $Comment
  399. $ACTIONS
  400. $SUBVIEW
  401. By _Author|By Author
  402. Scope
  403. Private
  404. ExpireDate
  405. _ViewIcon
  406.     2S3S4S6S8S9S12S14S
  407. DocumentG
  408. Status
  409. StatusY
  410. Subject
  411. $VersionOpt
  412. Subject
  413.   (Original document in review cycle)
  414. ReviewStyle
  415. ParallelG
  416. Subject
  417.   (Reviewed by 
  418. LastEditor"
  419. Subject
  420.   (Reviewed by 
  421. PreviousReviewers
  422. Archive
  423. Subject
  424. Subject
  425. (Response to 
  426. OriginalSubject
  427. Subject
  428.  (Response to "
  429. OriginalSubject
  430.     6S9RS4E12S13S14S15S20RS8E22RS4E27RS8E28S29S31RS4E35S38RS9E39S40S41S42S2E43S44S46RS4E47S48S49S50S56S57S60R64S67RS4E69R70S71S73RS5E74S75S76S79R80S81S82S83S84S85S
  431. $45$42$36$43$Conflict
  432.     L1S2E1
  433. $45$36
  434. $36$43
  435. CN=Catherine Duffy/O=IrisCN=Lotus Notes Template Development/O=Lotus NotesStdR4DocLibY#############################################
  436. Review Status|Review Status
  437. Scope
  438. Private
  439. ExpireDate
  440. _ViewIcon
  441.     2S3S4S6S8S9S12S14S
  442. DocumentG
  443. $VersionOpt
  444. Original by 
  445. ReviewStyle
  446. Review by 
  447. LastEditor
  448. Subject
  449. Subject
  450.     6S9RS4E16RS9E22S25RS4E31RS9E32S33S2E37S40RS4E44R47S48S50RS5E52R53S54S56S57S58S59S63S65S66S
  451. CurrentReviewers
  452. FutureReviewers
  453.     5S6S8S10S
  454. Status$40$41SubjectFrom$26DueDateTime$Conflict$REF
  455. Statush
  456. Status
  457.     L1S5S6S7S8S1%
  458. StatusDueDateTime
  459. Subject$26
  460. DueDateTime$26
  461. CN=Catherine Duffy/O=IrisCN=Lotus Notes Template Development/O=Lotus NotesStdR4DocLibY########################################################
  462. $SUBVIEW
  463. ($All)|($All)
  464. Scope
  465. Private
  466. ExpireDate
  467. _ViewIcon
  468.     2S3S4S6S8S9S12S14S
  469. DocumentG
  470. $VersionOpt
  471. Original by 
  472. ReviewStyle
  473. Review by 
  474. LastEditor
  475. Subject
  476. Subject
  477.     6S9RS4E16RS9E17S18S22S25RS4E31RS9E32S33S2E37S40RS4E44R47S48S50RS5E52R53S54S56S57S58S59S63S65S66S
  478. Categories$51$54$52Subject$25$53$Conflict$REF
  479. Categories$54$25
  480. Subject
  481. $25$53
  482. $53$25
  483. CN=Ryan Jansen/O=IrisCN=Lotus Notes Template Development/O=Lotus NotesStdR4DocLibTYd###################
  484. ##########################################################
  485. ##########################################################
  486. ##########################################################
  487.  $45,
  488. Scope
  489. Private
  490. ExpireDate
  491. _ViewIcon
  492.     2S3S4S6S8S9S12S14S
  493. $36Modified
  494. $43Title
  495. DocumentG
  496. Status
  497. StatusY
  498. Subject
  499. $VersionOpt
  500. Subject
  501.   (Original document in review cycle)
  502. ReviewStyle
  503. ParallelG
  504. Subject
  505.   (Reviewed by 
  506. LastEditor"
  507. Subject
  508.   (Reviewed by 
  509. PreviousReviewers
  510. Archive
  511. Subject
  512. Subject
  513. (Response to 
  514. OriginalSubject
  515. Subject
  516.  (Response to "
  517. OriginalSubject
  518.     6S9RS4E12S13S14S15S20RS8E22RS4E27RS8E28S29S31RS4E35S38RS9E39S40S41S42S2E43S44S46RS4E47S48S49S50S56S57S60R64S67RS4E69R70S71S73RS5E74S75S76S79R80S81S82S83S84S85S&
  519. Categori_ze
  520. _Edit Document
  521. Send Docu_ment
  522. _Forward
  523. Navigator H
  524. EnvName
  525. NavigatorState"
  526.     1S2S
  527. EnvName
  528. EnvName
  529. Main Navigator
  530. EnvName
  531.     0R11RS8E13RS20E14S20RS20E30RS8E32RS20E33S39RS20E44RS9E
  532. New Document,
  533. Document
  534.     0S0E
  535. Response,
  536. Response
  537.     0S0E
  538. Response to Response8
  539. Response to Response
  540.     0S0E
  541. _Move to Folder...    
  542. _Remove from Folder...
  543. O=Lotus Notes
  544. O=Lotus Notes
  545. PURSAFO
  546. |.:#U
  547. O=Lotus Notes
  548. CN=Lotus Notes Template Development/O=Lotus Notes
  549. PURSAFO
  550. Fde!f^^
  551. 2_gj7.
  552. $TYPE
  553. $Index
  554. $Formula
  555. $FormulaClass
  556. $VIEWFORMAT
  557. $Comment
  558. $ACTIONS
  559.  Status  $40
  560. Scope
  561. Private
  562. ExpireDate
  563. _ViewIcon
  564.     2S3S4S6S8S9S12S14S
  565. DocumentG
  566. $VersionOpt
  567. Original by 
  568. ReviewStyle
  569. Review by 
  570. LastEditor
  571. Subject
  572. Subject
  573.     6S9RS4E16RS9E22S25RS4E31RS9E32S33S2E37S40RS4E44R47S48S50RS5E52R53S54S56S57S58S59S63S65S66S
  574. SubjectTitleFromCreated By$26ReviewersX
  575. CurrentReviewers
  576. FutureReviewers
  577.     5S6S8S10SDueDateTimeDue&
  578. Categori_ze
  579. _Edit Document
  580. Send Docu_ment
  581. _Forward
  582. Navigator H
  583. EnvName
  584. NavigatorState"
  585.     1S2S
  586. EnvName
  587. EnvName
  588. Main Navigator
  589. EnvName
  590.     0R11RS8E13RS20E14S20RS20E30RS8E32RS20E33S39RS20E44RS9E
  591. New Document,
  592. Document
  593.     0S0E
  594. Response,
  595. Response
  596.     0S0E
  597. Response to Response8
  598. Response to Response
  599.     0S0E
  600. _Move to Folder...    
  601. _Remove from Folder...
  602. Unlock Document
  603. (Unlock Document)
  604. Server
  605.     1S2S6S
  606.     0R1S2S6S
  607. Server
  608.     0R7S8S11S13S14S15S16S
  609. O=Lotus Notes
  610. O=Lotus Notes
  611. PURSAFO
  612. |.:#U
  613. O=Lotus Notes
  614. CN=Lotus Notes Template Development/O=Lotus Notes
  615. PURSAFO
  616. Fde!f^^
  617. $Index
  618. $Formula
  619. $FormulaClass
  620. $VIEWFORMAT
  621. $Comment
  622. $ACTIONS
  623.  Categories$51
  624. Scope
  625. Private
  626. ExpireDate
  627. _ViewIcon
  628.     2S3S4S6S8S9S12S14S
  629. DocumentG
  630. $VersionOpt
  631. Original by 
  632. ReviewStyle
  633. Review by 
  634. LastEditor
  635. Subject
  636. Subject
  637.     6S9RS4E16RS9E17S18S22S25RS4E31RS9E32S33S2E37S40RS4E44R47S48S50RS5E52R53S54S56S57S58S59S63S65S66S
  638. SubjectTitle$25Modified
  639. $53Author,
  640. Categori_zeo
  641. _Edit Document
  642. Send Docu_ment
  643. _Forward
  644. Navigator
  645. EnvName
  646. NavigatorState"
  647.     1S2S
  648. EnvName
  649. EnvName
  650. Main Navigator
  651. EnvName
  652.     0R11RS8E13RS20E14S20RS20E30RS8E32RS20E33S39RS20E44RS9E
  653. New Document,
  654. Document
  655.     0S0E
  656. Response,
  657. Response
  658.     0S0E
  659. Response to Response8
  660. Response to Response
  661.     0S0E
  662. _Move to Folder...    
  663. _Remove from Folder...
  664. O=Lotus Notes
  665. O=Lotus Notes
  666. PURSAFO
  667. |.:#U
  668. O=Lotus Notes
  669. CN=Lotus Notes Template Development/O=Lotus Notes
  670. PURSAFO
  671. Fde!f^^
  672. @GZ3b
  673. $TYPE
  674. $TITLE
  675. $Index
  676. $Formula
  677. $FormulaClass
  678. $VIEWFORMAT
  679. $Comment
  680. $ACTIONS
  681. My Favorite Documents
  682. My Favorite DocumentsMy Favorite Documents/L
  683. Scope
  684. Private
  685. ExpireDate
  686. _ViewIcon
  687.     2S3S4S6S8S9S12S14S
  688. DocumentG
  689. Status
  690. StatusY
  691. Subject
  692. $VersionOpt
  693. Subject
  694.   (Original document in review cycle)
  695. ReviewStyle
  696. ParallelG
  697. Subject
  698.   (Reviewed by 
  699. LastEditor"
  700. Subject
  701.   (Reviewed by 
  702. PreviousReviewers
  703. Archive
  704. Subject
  705. Subject
  706. (Response to 
  707. OriginalSubject
  708. Subject
  709.  (Response to "
  710. OriginalSubject
  711.     6S9RS4E12S13S14S15S20RS8E22RS4E27RS8E28S29S31RS4E35S38RS9E39S40S41S42S2E43S44S46RS4E47S48S49S50S56S57S60R64S67RS4E69R70S71S73RS5E74S75S76S79R80S81S82S83S84S85S
  712. $29$30$27From$Conflict
  713. From$27
  714. Debbie BrancoCN=Lotus Notes Template Development/O=Lotus NotesStdR4DocLibFYpd
  715. #####
  716. ReviewOptionsReviewOptions
  717. CN=Catherine Duffy/O=IrisCN=Lotus Notes Template Development/O=Lotus NotesStdR4DocLibCD###########################################
  718. DocumentWorkflow
  719. CN=Catherine Duffy/O=IrisCN=Lotus Notes Template Development/O=Lotus NotesStdR4DocLibCUA3#######
  720. SmartSuite\123 Worksheet123Worksheet DocumentDocumentWorkflow
  721. CN=Don Hatch/O=IrisCN=Lotus Notes Template Development/O=Lotus Notes###########
  722. SmartSuite\Freelance PresentationFreelance DocumentDocumentWorkflow
  723. CN=Don Hatch/O=IrisCN=Lotus Notes Template Development/O=Lotus Notes#####
  724. SmartSuite\WordPro DocumentWordPro DocumentDocumentWorkflow
  725. CN=Don Hatch/O=IrisCN=Lotus Notes Template Development/O=Lotus Notes#############
  726. StdR4DocLib
  727. Mark/Unmark Document As Expired
  728. E4fL3
  729. CN=Ryan Jansen/O=IrisCN=Lotus Notes Template Development/O=Lotus Notes###
  730. ##########################################################
  731. Scope
  732. Private
  733. ExpireDate
  734. _ViewIcon
  735.     2S3S4S6S8S9S12S14S
  736. $30Title
  737. DocumentG
  738. Status
  739. StatusY
  740. Subject
  741. $VersionOpt
  742. Subject
  743.   (Original document in review cycle)
  744. ReviewStyle
  745. ParallelG
  746. Subject
  747.   (Reviewed by 
  748. LastEditor"
  749. Subject
  750.   (Reviewed by 
  751. PreviousReviewers
  752. Archive
  753. Subject
  754. Subject
  755. (Response to 
  756. OriginalSubject
  757. Subject
  758.  (Response to "
  759. OriginalSubject
  760.     6S9RS4E12S13S14S15S20RS8E22RS4E27RS8E28S29S31RS4E35S38RS9E39S40S41S42S2E43S44S46RS4E47S48S49S50S56S57S60R64S67RS4E69R70S71S73RS5E74S75S76S79R80S81S82S83S84S85S$27Date
  761. FromAuthor&
  762. Categori_ze
  763. _Edit Document
  764. Send Docu_ment
  765. _Forward
  766. Navigator
  767. EnvName
  768. NavigatorState"
  769.     1S2S
  770. EnvName
  771. EnvName
  772. Main Navigator
  773. EnvName
  774.     0R11RS8E13RS20E14S20RS20E30RS8E32RS20E33S39RS20E44RS9E
  775. New Document,
  776. Document
  777.     0S0E
  778. Response,
  779. Response
  780.     0S0E
  781. Response to Response8
  782. Response to Response
  783.     0S0E
  784. _Move to Folder...    
  785. _Remove from Folder...
  786. O=Lotus Notes
  787. O=Lotus Notes
  788. PURSAFO
  789. |.:#U
  790. O=Lotus Notes
  791. CN=Lotus Notes Template Development/O=Lotus Notes
  792. PURSAFO
  793. Fde!f^^
  794. $Name
  795. $Index
  796. $Formula
  797. $FormulaClass
  798. $VIEWFORMAT
  799. $Comment
  800. $ACTIONS
  801. ($All)
  802. TextBox1All Documents
  803. TextBox2By Author
  804. TextBox3My Favorite Documents
  805. TextBox4By Review Status
  806. TitleDocuments:
  807. AllDocs
  808. ($All)
  809. ByAuthor
  810. By Author
  811. ByStatus
  812. Review Status
  813. MyFavDocs
  814. My Favorite Documents
  815. O=Lotus Notes
  816. O=Lotus Notes
  817. PURSAFO
  818. |.:#U
  819. O=Lotus Notes
  820. CN=Lotus Notes Template Development/O=Lotus Notes
  821. PURSAFO
  822. Fde!f^^
  823. $ViewMapDataset
  824. $ViewMapLayout
  825. Times New Roman
  826. Using SmartSuite Library
  827.  @  @@ @` @
  828. @@ @@@@@`@@
  829. `@ `@@`@``@
  830. This database allows you to capture and track information about documents.
  831. Functions of the Database:
  832. To add a document to this database
  833. Select Create, Document.
  834. You can enter document information in several ways: by typing it using the Notes editor, by scanning in hard copy, or by importing or attaching an electronic file. 
  835. To respond to a document
  836. Highlight that document in a view, then select Create, Response.
  837. To respond to a response
  838. Highlight the response you wish to respond to, then select Create, Response to Response.
  839.     To flag a document as Private:
  840.     You can use the "Mark Private" and
  841.     "Mark Public" actions in the template to control whether anyone other than yourself can read a specific document.  For example, if you have not completed the writing of a particular document, you can click the "Mark Private" action and others will not be able to see the document.  When you complete the document, you can click the
  842.     "Mark Public"
  843.     action to make it available for others to read.  
  844.     If a document is marked private after it has been submitted for review, the document author and the reviewers will be able to read the document.
  845. Features
  846.     Document Review Cycle:
  847.     The author of a document has the option of setting up a document review cycle for that document. To do so simply click on the Setup Review Cycle action button and fill in the necessary information.
  848.     Note:  
  849.     Do not use 
  850.     @Domain
  851.      when entering approver names.  Any domain added will be stripped off and may cause complications when attempting to route a request.  Also, only enter Person-names as approvers.  Group names are not supported.
  852.     Clearing a Review Cycle:
  853.     Document Library, SmartSuite 96 Library, and MS Office Library provides an action button to "Clear Review Cycle".  This is accessible only by the document's originator.  You can either use the action prior to submitting a document for review, or after submittal.  Below are the guidelines:
  854.     o    Clearing a review cycle prior to submitting for review:  Select this if you, as originator, wish to change the review cycle settings before your reviewers receive notification.
  855.     o    Clearing a review cycle after submittal:  If reviewers have already begun or completed their document review, their work will be preserved.  If reviewers were notified to review a document and they have not yet begun the review, they will receive a courtesy notice that they are no longer required to conduct a review.
  856.     Lotus SmartSuite Library Review Styles:
  857.     Serial Review:
  858.       Documents are routed for review one at a time, in sequence to the reviewers chosen by the author.
  859.     o    All edits are made within the same document, but an unedited copy of the original document is also saved.
  860.     Serial Review (keep all revisions):
  861.       Documents are routed for review one at a time, in sequence to the reviewers chosen by the author.
  862.     o    Edits are made within a copy of the original, which also includes all comments from previous reviewers
  863.     o    All old versions become response documents (as well as a copy of the original)
  864.     Document Reservations:
  865.       Requests for document review are routed in parallel (that is, all at the same time).  When one reviewer opens the document, a "file locking" occurs at the server which warns any other user who happens to edit the document that a review is in progress.  
  866.     o    Review comments or edits are made into a copy of the original document
  867.     o    As with the others, a clean copy of the original is always kept
  868.     Response Review:
  869.       Same as Document Reservations (but with no file locking).
  870.     o    Review comments or edits are saved as response documents to the original document.  
  871.     o    As with the others, a clean copy of the original is always kept
  872.     Processing Late Reviews:
  873.     If the Process Late Reviews agent is enabled, it selects those documents which are in review and have due dates which have passed.  Based upon the review style of the document, it then either moves it along to the next reviewer, marks it as complete, or simply notifies the current reviewer(s) that their review is overdue.
  874.     Unlock Document:
  875.     Occasionally a document is accidentally left in a locked state.  The Unlock Document action can be accessed by designers and managers from the Review Status view's Action menu to unlock the document.
  876.     Document Archiving:
  877.     This is a process by which certain documents are removed from the current database and stored in a different database.  This keeps the library up-to-date with only the latest topics.  Most of the Archiving activities take place from the "Archiving" view.  You must switch to this view in order to initiate archiving on a library database.
  878.     To set up archiving on any library database, switch to the Archiving view and click the action called "Setup Archive".  The Archive Profile appears.  This document contains criteria that the user specifies for archiving topics in a library (e.g., inactive after 'x' days, or expired after 'x' days).  The archive database is automatically created when the Profile is saved.  The archival database filename is also specified in the Archive Profile; the title of the archive will be the title of the Lotus SmartSuite Library database followed by "(Archived)".  After the archive criteria have been specified in the Archive Profile, other agents run on the database to move the document(s).  
  879.     Mark/Unmark Document as Expired:
  880.       Marks a topic as "expired".  If the Archive Profile specifies that 
  881.     expired 
  882.     topics should be archived, the document(s) marked with this agent would fall into that criterion.  If a document is already marked as expired, this agent tells the user what the expire date was, and will ask if the user wants to un-expire it.
  883.     Periodic Archive:
  884.       Reviews the Archive Profile and moves documents which meet the archive criteria into the archive database.  This agent is run automatically on the server; the schedule is set by the database manager/designer.
  885.     Troubleshooting:
  886.     User receives the following error: "Cannot launch OLE object: Form inconsistency or Application not installed.  Contact Database Administrator."
  887.     Because this template is designed to work with SmartSuite 96 and Windows 95, users may receive this error when creating documents from a Windows 3.1 client or when using a previous release of SmartSuite.  The database designer should modify the SmartSuite forms and change the Auto Launch setting in the Form properties InfoBox to reflect the Win 16 version of the SmartSuite software.
  888. O=Lotus Notes
  889. O=Lotus Notes
  890. PURSAFO
  891. |.:#U
  892. O=Lotus Notes
  893. CN=Lotus Notes Template Development/O=Lotus Notes
  894. PURSAFO
  895. Fde!f^^
  896. $Info
  897. $Body
  898. Times New Roman
  899. Task List
  900. &Switch To
  901. About SmartSuite Library
  902.  @  @@ @` @
  903. @@ @@@@@`@@
  904. `@ `@@`@``@
  905.     What does this database do?
  906.     A Document Library application is an electronic filing cabinet that stores reference documents for access by a workgroup.  The database might contain anything from environmental impact statements for a group of engineers to financial statements for a group of loan officers. This Document Library template  is designed to work with Lotus SmartSuite '96  applications.  (It is not backward comaptible with previous versions of the Lotus SmartSuite).
  907.     Who will use this database?
  908.     Anyone who wishes to create a record of a document or review available documents may use this database.
  909.     Important Features
  910.     Review Cycle:
  911.      Used to route a document to a series of recipients.
  912.     Document Archiving:
  913.      Used to move expired documents to an archive database.
  914.     Suggestions for Modifications
  915.     Full text search: 
  916.     If you wish to use Notes' full text search capabilities for a database created with this template, select menu File, Database, Properties, go to the Full Text panel and then select Create Index... to create the full text index.
  917.     Where to find more information?
  918.     -  More information can be found by selecting Help, Using Database
  919.     Access Control
  920.     Very Important:  
  921.     Access level should be 
  922.     Author
  923.      for all users of this database.  This will prevent unauthorized editing of documents within the database.  The Author fields within the forms govern who will be able to edit/review particular documents.   Errors will occur if someone with Editor access attempts to review a document when they are not an authorized reviewer of that document.
  924. O=Lotus Notes
  925. O=Lotus Notes
  926. PURSAFO
  927. |.:#U
  928. O=Lotus Notes
  929. CN=Lotus Notes Template Development/O=Lotus Notes
  930. PURSAFO
  931. Fde!f^^
  932. $Info
  933. $Body
  934. Times New Roman
  935.  ReviewOptions
  936. Review style:
  937. ReviewStyle
  938. ReviewStyle
  939. Serial review | Serial.NoVersionsSerial (keep all revisions) | Serial.VersionsDocument reservations | Parallel.NoVersionsResponse review | Parallel.Versions
  940. ReviewWindow
  941. ReviewWindow
  942. No time limit on review | NoLimitMove to next reviewer after | MoveOnKeep sending reminders after | Reminder
  943. Allotted time:
  944. Notification:
  945. NofityAfter
  946. NotifyAfter
  947. Notify me after each reviewer | EachNotify me after final reviewer | Final
  948. ReviewWindow
  949. NoLimit
  950.     1S2S
  951. ReviewTime
  952. ReviewWindow
  953. NoLimit
  954. ReviewTime
  955. ReviewTime
  956.     3S4S6S8S14S
  957. ReviewWindow
  958. NoLimit
  959. ReviewTimeX
  960. Please enter a number.{
  961. ReviewTimeX
  962. Please enter a whole number which is greater than zero.
  963.     3S4S6S8S16S21S25S26S28S33S
  964. ReviewTime
  965. day(s)
  966. SaveChoices
  967. SaveChoices
  968. Save choices for next time. | 1
  969. Categori_ze
  970. _Edit Document
  971. Send Docu_ment
  972. _Forward
  973. _Move to Folder...
  974. _Remove from Folder$
  975. O=Lotus Notes
  976. O=Lotus Notes
  977. PURSAFO
  978. |.:#U
  979. O=Lotus Notes
  980. CN=Lotus Notes Template Development/O=Lotus Notes
  981. PURSAFO
  982. Fde!f^^
  983. ReviewTime_1
  984. $TITLE
  985. $Info
  986. $$ScriptName
  987. $Body
  988. $ACTIONS
  989. '++LotusScript Development Environment:2:5:(Options):0:74
  990. Option Public
  991. '++LotusScript Development Environment:2:5:(Forward):0:1
  992. Declare Sub InitializeDocument(source)
  993. Declare Sub InitializeStatusList
  994. Declare Sub RebuildList(InputList As Variant)
  995. Declare Sub SetReviewerLists
  996. Declare Sub SendNotification
  997. Declare Sub InitiateReview(source)
  998. Declare Sub GetReviewSequence
  999. Declare Sub ResetAuthorNames
  1000. '++LotusScript Development Environment:2:5:(Declarations):0:10
  1001. '***** OBJECT VARIABLES *****
  1002. Dim s As NotesSession
  1003. Dim w As NotesUIWorkspace
  1004. Dim doc As NotesUIDocument
  1005. Dim db As NotesDatabase
  1006. Dim note As NotesDocument
  1007. Dim tempnote As NotesDocument
  1008. Dim maildoc As NotesDocument
  1009. Dim parent As NotesDocument
  1010. Dim child As NotesDocument
  1011. Dim children As NotesDocumentCollection
  1012. Dim item As NotesItem
  1013. Dim rtitem As NotesRichTextItem
  1014. Dim dt As NotesDateTime
  1015. '***** DATA VARIABLES - FIELDS DEFINED ON FORM*****
  1016. Dim ReviewStyle As Variant
  1017. Dim ReviewSeq As Variant
  1018. Dim Reviewers As Variant
  1019. Dim PreviousReviewers As Variant
  1020. Dim FutureReviewers As Variant
  1021. Dim CurrentReviewers As Variant
  1022. Dim DocumentAuthors As Variant
  1023. Dim Originator As Variant
  1024. Dim Versioning As Variant
  1025. '***** DATA VARIABLE - FIELDS DEFINED IN SCRIPT, NOT DEFINED ON FORM
  1026. Dim Status As Variant
  1027. Dim Locked As Variant
  1028. Dim InProcess As Variant
  1029. '***** SCRIPT PROCESSING VARIABLES *****
  1030. Dim ReviewerList() As Variant
  1031. Dim OldList() As Variant
  1032. Dim InputList As Variant
  1033. Dim NewList() As Variant
  1034. Dim ListMax As Integer
  1035. Dim tmpList As Variant
  1036. Dim CompareValue As Variant
  1037. Dim Elements As Integer
  1038. Dim DocWasSaved As Integer
  1039. Dim ParentIsLocked As Integer
  1040. Dim DocIsLocked As Integer
  1041. Dim LockedBy As Variant
  1042. Dim InitiatingReview As Integer
  1043. Dim CompareValueFound As Integer
  1044. Dim FinalSave As Variant
  1045. '***** TEMP PROCESSING FIELDS - ADDED TO DOC ON OPEN, DELETED ON CLOSE*****
  1046. Dim CurrentUser As String
  1047. Dim Action As Variant
  1048. Dim StatusList(1 To 4) As Variant
  1049. '++LotusScript Development Environment:2:2:InitializeDocument:1:8
  1050. Sub InitializeDocument(source)
  1051.      
  1052. 'This routine initializes object variables, global variables and some field values     
  1053.      
  1054. 'Turn off Autoreload to speed up response time (this means we need to do manual reloads and refreshes)
  1055.      source.AutoReload = False
  1056.      
  1057.      Set w = New NotesUIWorkspace
  1058.      Set s = New NotesSession
  1059.      Set db = s.CurrentDatabase
  1060.      Set note = source.Document
  1061.      
  1062.      CurrentUser = s.CommonUserName
  1063.      note.tmpCurrentUser = CurrentUser
  1064.      Originator = note.From
  1065.      
  1066.      InitializeStatusList
  1067.      If source.IsNewDoc Then
  1068.           note.Status = StatusList(1)
  1069.           note.Scope = "Public"
  1070.      Else
  1071.           If note.Locked(0) <> "" Then
  1072.                DocIsLocked = True
  1073.                LockedBy = note.Locked
  1074.           End If
  1075.      End If
  1076.      
  1077. 'Initialize V3 documents
  1078.      If Not(note.HasItem("Status")) Then
  1079.           note.Status = StatusList(1)
  1080.           note.Scope = "Public"
  1081.           note.DocumentAuthors = s.CommonUserName
  1082.           note.From = Evaluate("@Name([CN]; From)", note)
  1083.      End If
  1084.      
  1085. 'Clear the status bar     
  1086.      Print
  1087.      
  1088. End Sub
  1089. '++LotusScript Development Environment:2:2:InitializeStatusList:1:8
  1090. Sub InitializeStatusList
  1091.      
  1092. 'Statuses are referred to positionally.  If you want the works to display differently in the view (like if you want the first
  1093. 'status to be None instead of New) you would change them here.     
  1094.      StatusList(1) = "New"
  1095.      StatusList(2) = "Ready for Review"
  1096.      StatusList(3) = "In Review"
  1097.      StatusList(4) = "Review Complete"
  1098.      
  1099.      note.StatusList = StatusList
  1100.      
  1101. End Sub
  1102. '++LotusScript Development Environment:2:2:RebuildList:1:8
  1103. Sub RebuildList(InputList As Variant)
  1104.      
  1105. 'This routine removes a value from a list (passed by reference)
  1106.      
  1107.      ListMax = Ubound(InputList)
  1108.      
  1109. 'Save original capitalization in OldList then lowercase both InputList and CompareValue     
  1110.      Redim OldList (ListMax)
  1111.      For i = 0 To ListMax
  1112.           OldList(i) = InputList(i)
  1113.           InputList(i) = Lcase(InputList(i))
  1114.      Next
  1115.      CompareValue = Lcase(CompareValue)
  1116.      
  1117.      Redim NewList (ListMax)
  1118.      x = 0 
  1119.      For y = 0 To ListMax
  1120.           If InputList(y) <> CompareValue Then
  1121.                NewList(x) = OldList(y)
  1122.                x = x + 1
  1123.           End If
  1124.      Next
  1125.      
  1126.      If x > 0 Then
  1127.           Redim Preserve NewList(x-1)
  1128.           tmpList = NewList
  1129.      Else
  1130.           tmpList = "None"
  1131.      End If
  1132.      
  1133.      If x = ListMax Then
  1134.           CompareValueFound = True
  1135.      Else
  1136.           CompareValueFound = False
  1137.      End If
  1138.      
  1139. End Sub
  1140. '++LotusScript Development Environment:2:2:SetReviewerLists:1:8
  1141. Sub SetReviewerLists
  1142.      
  1143.      Print "Updating Reviewer Lists"
  1144.      
  1145.    For a Parallel submit, set CurrentReviewers to the Reviewers field (there are no
  1146.       FutureReviewers - all reviewers are current) and set FutureReviewers to "None".
  1147.    For a Parallel review, remove CurrentUser from CurrentReviewers and add it to
  1148.       PreviousReviewers.
  1149.    For a Serial submit, set CurrentReviewers to the first Reviewer and set FutureReviewers
  1150.       to the Reviewers field minus the first Reviewer
  1151.    For a Serial review remove CurrentUser from FutureReviewers and add it to
  1152.       PreviousReviewers.
  1153. %ENDREM
  1154.      
  1155.      ListMax = 0
  1156.      Set dt = New NotesDateTime("")
  1157.      dt.SetNow
  1158.      If Action(0) = "Complete" Then ReviewerLogEntry = CurrentUser & " on " & Format(dt.LSLocalTime, "Short Date")
  1159.      
  1160.      Select Case ReviewSeq
  1161.      Case "Parallel"
  1162. 'On submit Set future reviewers to None since all reviewers are current          
  1163.           If Action(0) = "Submit" Then
  1164.                Reviewers = note.Reviewers            
  1165.                tmpList = Reviewers
  1166.                note.FutureReviewers = "None"
  1167.           Else
  1168. '(this is for action = Complete)               
  1169. 'For Response Reviews, we maintain the status in the parent               
  1170.                If note.IsResponse Then
  1171.                     CurrentReviewers = parent.CurrentReviewers
  1172.                     Set item = parent.GetFirstItem("ReviewerLog")
  1173.                Else
  1174.                     CurrentReviewers = note.CurrentReviewers
  1175.                     Set item = note.GetFirstItem("ReviewerLog")
  1176.                End If
  1177.                item.AppendToTextList(ReviewerLogEntry)              
  1178.                CompareValue = CurrentUser
  1179. 'Remove the CurrentUser from the CurrentReviewers list               
  1180.                Call RebuildList(CurrentReviewers)
  1181.           End If
  1182.           FieldName = "CurrentReviewers"
  1183.      Case "Serial"
  1184. 'On submit, put all reviewers in the future reviewers list          
  1185.           If Action(0) = "Submit" Then
  1186.                Reviewers = note.Reviewers
  1187.                tmpList = Reviewers
  1188.                Call note.ReplaceItemValue("FutureReviewers", tmpList)
  1189.           Else
  1190.                Set item = note.GetFirstItem("ReviewerLog")
  1191.                item.AppendToTextList(ReviewerLogEntry)
  1192.           End If
  1193.           FutureReviewers = note.FutureReviewers
  1194. 'Put the first person in the future reviewers list in current reviewer
  1195. 'On submit this makes the first one current, on Complet it makes the next one current          
  1196.           note.CurrentReviewers = FutureReviewers(0)
  1197.           CompareValue = FutureReviewers(0)
  1198.           FieldName = "FutureReviewers"
  1199. 'Remove the first element from the FutureReviewers list
  1200.           Call RebuildList(FutureReviewers)
  1201.      End Select
  1202.      
  1203. 'Calculate when the review is due, based upon ReviewTime     
  1204.      ReviewTime = note.ReviewTime
  1205.      temp = ReviewTime(0)
  1206.      Set dt = New NotesDateTime("")
  1207.      dt.SetNow
  1208.      If Isnumeric(ReviewTime(0)) Then dt.AdjustDay(temp)
  1209.      
  1210. 'Update DueDate - If there is a Review time then reset, otherwise delete
  1211. 'Update PreviousReviewers to None if this is a submit, otherwise add CurrentUser to existing list
  1212.      If note.IsResponse And ReviewSeq = "Parallel" Then
  1213.           If Isnumeric(ReviewTime(0)) Then
  1214.                parent.DueDateTime = dt.LSLocalTime
  1215.           Else
  1216.                parent.RemoveItem("DueDateTime")
  1217.           End If
  1218.           Call parent.ReplaceItemValue(FieldName, tmpList)
  1219.           PreviousReviewers = parent.PreviousReviewers
  1220.           If PreviousReviewers(0) = "None" Then
  1221.                parent.PreviousReviewers = CurrentUser
  1222.           Else
  1223.                Set item = parent.GetFirstItem("PreviousReviewers")
  1224.                item.AppendToTextList (CurrentUser)
  1225.           End If
  1226. 'In a response review, we remove these because they are stored in the main doc          
  1227.           note.RemoveItem("PreviousReviewers")
  1228.           note.RemoveItem("CurrentReviewers")
  1229.           note.RemoveItem("FutureReviewers")
  1230.           If Action(0) = "Complete" Then
  1231.                note.RemoveItem("DueDateTime")
  1232.                note.Status = StatusList(4)
  1233.           End If
  1234.      Else
  1235.           If Isnumeric(ReviewTime(0)) Then 
  1236.                note.DueDateTime = dt.LSLocalTime
  1237.           Else
  1238.                note.RemoveItem("DueDateTime")
  1239.           End If
  1240.           Call note.ReplaceItemValue(FieldName, tmpList)
  1241.           If Action(0) = "Submit" Then
  1242.                note.PreviousReviewers = "None"
  1243.           Else
  1244.                PreviousReviewers = note.PreviousReviewers
  1245.                If PreviousReviewers(0) = "None" Then
  1246.                     note.PreviousReviewers = CurrentUser
  1247.                Else              
  1248.                     Set item = note.GetFirstItem("PreviousReviewers")
  1249.                     item.AppendToTextList (CurrentUser)
  1250.                End If
  1251.           End If
  1252.      End If
  1253.      
  1254. End Sub 
  1255. '++LotusScript Development Environment:2:2:SendNotification:1:8
  1256. Sub SendNotification
  1257.      
  1258. 'This routine sets the content of the notification email, based upon values set in SetReviewerLists.     
  1259.      
  1260.      If note.IsResponse Then
  1261.           CurrentReviewers = parent.CurrentReviewers
  1262.      Else
  1263.           CurrentReviewers = note.CurrentReviewers
  1264.      End If
  1265.      DbTitle = db.Title
  1266.      DueDateTime = note.DueDateTime
  1267.      Subject = note.Subject
  1268.      Recipient = Empty
  1269.      NotifyAfter = note.NotifyAfter
  1270.      
  1271. 'If it is a parallel review with only final notification to the originator, 
  1272. 'there is not need to send mail on a normal completion     
  1273.      If (ReviewSeq = "Parallel") And (CurrentReviewers(0) <> "None") _
  1274.      And (NotifyAfter(0) = "Final") And (Action(0) <> "Submit") Then
  1275.           Exit Sub
  1276.      Else
  1277.           Print "Sending Notification"
  1278.      End If
  1279.      
  1280.      Set maildoc = New NotesDocument(db)
  1281.      Set rtitem = New NotesRichTextItem(maildoc, "Body")
  1282.      
  1283.      Select Case Action(0)
  1284.      Case "Submit"
  1285.           tmpList = CurrentReviewers
  1286.           tmpSubject = "Document Requires Review:  " & Subject(0)
  1287.           If note.HasItem("DueDateTime") Then
  1288.                tmpFlowStatus = "Please take the time to review this document before the due date shown below."              
  1289.           Else
  1290.                tmpFlowStatus = "Please take the time to review this document."
  1291.           End If
  1292.           tmpMessagebox = "Request for review has been sent to "
  1293.           If ReviewSeq = "Parallel" Then
  1294.                tmpRecipient = "All Reviewers"
  1295.           Else
  1296.                tmpRecipient = CurrentReviewers(0)         
  1297.           End If
  1298.      Case "Complete"
  1299.           If CurrentReviewers(0) = "None" Then
  1300.                tmpList = Originator(0)
  1301.                tmpSubject = "Review is complete for:  " & Subject(0)
  1302.                tmpFlowStatus = "All reviewers have completed their work on this document."
  1303.                tmpMessagebox = "Notification that you have completed your review has been sent to the originator: "               
  1304.           Else
  1305.                Select Case ReviewSeq
  1306.                Case "Parallel"     
  1307.                     tmpList = Originator(0)              
  1308.                     tmpFlowStatus = CurrentUser & " is finished reviewing this document."              
  1309.                     tmpSubject = CurrentUser & " has completed review of:  " & Subject(0)
  1310.                     tmpMessagebox = "Notification that you have completed your review has been sent to the originator, "
  1311.                Case "Serial"
  1312.                     tmpList = CurrentReviewers(0)
  1313.                     tmpSubject = "Document Requires Review:  " & Subject(0)
  1314.                     If note.HasItem("DueDateTime") Then
  1315.                          tmpFlowStatus = Originator(0) & " requests that you review this document before the due date shown below."            
  1316.                     Else
  1317.                          tmpFlowStatus = Originator(0) & " requests that you review this document."              
  1318.                     End If
  1319.                     tmpMessagebox = "Notification that you have completed your review has been sent to "               
  1320.                     If NotifyAfter(0) = "Each" Then 
  1321.                          maildoc.CopyTo = Originator(0)
  1322.                          tmpRecipient = tmpList & " and " & Originator(0)
  1323.                     End If
  1324.                End Select
  1325.           End If
  1326.           If tmpRecipient = "" Then tmpRecipient = tmpList
  1327.      End Select
  1328.      
  1329.      Call maildoc.AppendItemValue("SendTo", tmpList)
  1330.      
  1331.      maildoc.Subject = tmpSubject
  1332.      maildoc.InheritedSubject = Subject(0)
  1333.      maildoc.InheritedDbTitle = DbTitle
  1334.      maildoc.FlowStatus = tmpFlowStatus
  1335.      If note.HasItem("DueDateTime") Then maildoc.DueDateTime = Format(DueDateTime(0), "Short Date")
  1336.      
  1337.      If note.IsResponse Then
  1338.           Call rtitem.AppendDocLink(parent, "DocLink to " & Subject(0))
  1339.      Else
  1340.           Call rtitem.AppendDocLink(note, "DocLink to " & Subject(0))
  1341.      End If
  1342.      
  1343.      maildoc.Form = "Bookmark"
  1344.      
  1345.      On Error Goto SendError
  1346.      Call maildoc.Send (False)
  1347.      
  1348.      Messagebox tmpMessagebox & tmpRecipient & ".", 0 + 64, "Document Library"
  1349.      
  1350.      Exit Sub
  1351.      
  1352. SendError:
  1353.      Messagebox "FYI:  " & tmpRecipient & " could not be notified via email at this time.", 0 + 64, "Document Library"
  1354.      Exit Sub
  1355.      
  1356. End Sub
  1357. '++LotusScript Development Environment:2:2:InitiateReview:1:8
  1358. Sub InitiateReview(source)
  1359.      
  1360. 'This routine does the versioning that occurs when a review in initiated (as opposed to on every save)     
  1361.      InProcess = note.InProcess
  1362.      Reviewers = note.Reviewers
  1363.      PreviousReviewers = note.PreviousReviewers
  1364.      
  1365. 'Check to see if CurrentUser is in the InProcess list.  If they are (or if this is the originator) then do not do versioning     
  1366.      Redim ReviewerList(0) 
  1367.      Forall n In InProcess
  1368.           If CurrentUser = n Then ReviewerList(0) = CurrentUser
  1369.      End Forall
  1370.      
  1371. 'Find out what kind of review we are processing     
  1372.      GetReviewSequence
  1373.      
  1374.      If ReviewerList(0) = CurrentUser Or CurrentUser = Originator(0) Then Exit Sub
  1375.      Print "Initiating Review"
  1376.      
  1377. 'Set the $VersionOpt appropriately
  1378.      If (Versioning = "Versions") Then
  1379.           If ReviewSeq = "Parallel" Then
  1380. 'This doc becomes a response (we are subsequently editting the response doc)
  1381.                VersionOpt = "1"
  1382.           Else
  1383. 'Previous versions become response (we are still editing the main doc)               
  1384.                VersionOpt = "3"
  1385.           End If
  1386.      Else
  1387. 'The original doc is saved as a response (for safe keeping)          
  1388.           If PreviousReviewers(0) = "None" And Not(note.HasItem("$VersionOpt")) Then VersionOpt = "3"
  1389.      End If
  1390.      
  1391. 'Reset the field
  1392.      If (Versioning = "Versions") Or (PreviousReviewers(0) = "None") Then Call note.ReplaceItemValue("$VersionOpt", VersionOpt)
  1393.      
  1394. 'CurrentUser is now on the InProcess list because they are actively reviewing the doc     
  1395.      Set item = note.GetFirstItem("InProcess")
  1396.      If item Is Nothing Then
  1397.           Call note.AppendItemValue("InProcess", CurrentUser)
  1398.      Else
  1399.           item.AppendToTextList(CurrentUser)
  1400.      End If
  1401.      
  1402. 'InitiatingReview flag tells the Querysave event how to process, reload from the backend, 
  1403. 'and save from the front end to create the appropriate version     
  1404.      InitiatingReview = True
  1405.      source.Reload
  1406.      If VersionOpt = 1 Or VersionOpt = 3 Then
  1407.           source.Refresh
  1408.           source.SaveNewVersion
  1409.      End If
  1410.      source.RefreshHideFormulas
  1411.      InitiatingReview = False
  1412.      
  1413.      Print
  1414.      
  1415. End Sub
  1416. '++LotusScript Development Environment:2:2:GetReviewSequence:1:8
  1417. Sub GetReviewSequence
  1418.      
  1419. 'ReviewSequence is stored in a manner that makes sense to users.  Here it is dealt with as serial or parallel,
  1420. 'with or without versioning.
  1421.      
  1422.      ReviewStyle = note.ReviewStyle
  1423.      
  1424.      position = Instr(ReviewStyle(0), ".")
  1425.      ReviewSeq = Left(ReviewStyle(0), position - 1)
  1426.      Versioning = Mid(ReviewStyle(0), position + 1)    
  1427.      
  1428. End Sub
  1429. '++LotusScript Development Environment:2:2:ResetAuthorNames:1:8
  1430. Sub ResetAuthorNames
  1431.      
  1432.      Select Case ReviewSeq
  1433.      Case "Serial"
  1434. 'Reset author names to CurrentReviewers + Originator (unless CurrentReviewers = "None")
  1435.           If CurrentReviewers(0) = "None" Then
  1436.                note.DocumentAuthors = Originator(0)
  1437.           Else
  1438.                CompareValue = Empty
  1439.                Call RebuildList(CurrentReviewers)
  1440.                Redim Preserve NewList(ListMax+1)
  1441.                NewList(ListMax+1) = Originator(0)
  1442.                tmpList = NewList
  1443.                note.DocumentAuthors = tmpList
  1444.           End If
  1445. 'If there are versions, remove it from them as well          
  1446.           If note.HasItem("$VersionOpt") Then
  1447.                Set children = note.Responses
  1448.                For c = 1 To children.Count
  1449.                     Set child = children.GetNthDocument(c)
  1450.                     child.DocumentAuthors = Originator(0)
  1451.                     If child.DocumentReaders(0) = "" Then child.RemoveItem("DocumentReaders")
  1452. 'It does not matter if it can not be saved because CurrentUser may not be in the AuthorNames field in all responses
  1453.                     On Error Resume Next
  1454.                     child.Save True, True
  1455.                     Err = 0
  1456.                Next
  1457.           End If
  1458.      Case "Parallel"
  1459.           If note.IsResponse Then
  1460. 'If all done we are updating the parent and the originator is the only editor
  1461. 'otherwise CurrentUser and originator are the editors of this doc
  1462.                If Action(0) = "Complete" Then
  1463.                     note.DocumentAuthors = Originator(0)
  1464.                     parentid = note.ParentDocumentUNID
  1465.                     Set parent = db.GetDocumentByUNID(parentid)
  1466.                     DocumentAuthors = parent.DocumentAuthors
  1467.                     CompareValue = CurrentUser
  1468.                     Call RebuildList(DocumentAuthors)
  1469.                     parent.DocumentAuthors = tmpList
  1470.                     If parent.DocumentReaders(0) = "" Then parent.RemoveItem("DocumentReaders")
  1471.                     parent.Save True, True
  1472.                Else
  1473.                     Redim NewList(1)
  1474.                     NewList(0) = CurrentUser
  1475.                     NewList(1) = Originator(0)
  1476.                     tmpList = NewList
  1477.                     note.DocumentAuthors = tmpList
  1478.                End If
  1479.           Else
  1480. 'If we are not versioning - then all current reviewers and the originator are editors (unless CurrentReviewer = "None")
  1481.                If CurrentReviewers(0) = "None" Then
  1482.                     note.DocumentAuthors = Originator(0)
  1483.                Else
  1484.                     CompareValue = Empty
  1485.                     Call RebuildList(CurrentReviewers)
  1486.                     Redim Preserve NewList(ListMax+1)
  1487.                     NewList(ListMax+1) = Originator(0)
  1488.                     tmpList = NewList
  1489.                     note.DocumentAuthors = tmpList
  1490.                End If
  1491. 'If there are versions, remove it from them as well          
  1492.                If note.HasItem("$VersionOpt") Then
  1493.                     Set children = note.Responses
  1494.                     For c = 1 To children.Count
  1495.                          Set child = children.GetNthDocument(c)
  1496.                          child.DocumentAuthors = Originator(0)
  1497.                          If child.DocumentReaders(0) = "" Then child.RemoveItem("DocumentReaders")
  1498.                          child.RemoveItem("Locked")
  1499. 'It does not matter if it can not be saved because CurrentUser may not be in the AuthorNames field in all responses
  1500.                          On Error Resume Next
  1501.                          child.Save True, True
  1502.                          Err = 0
  1503.                     Next
  1504.                End If
  1505.           End If
  1506.      End Select
  1507.      
  1508. End Sub
  1509. K$    Qh
  1510. K$    Qh
  1511. DocumentWorkflow'++LotusScript Development Environment:2:5:(Options):0:66
  1512. '++LotusScript Development Environment:2:5:(Forward):0:1
  1513. Declare Sub Queryopen(Source As Notesuidocument, Mode As Integer, Isnewdoc As Variant, Continue As Variant)
  1514. Declare Sub Postopen(Source As Notesuidocument)
  1515. Declare Sub Querymodechange(Source As Notesuidocument, Continue As Variant)
  1516. Declare Sub Postmodechange(Source As Notesuidocument)
  1517. Declare Sub Querysave(Source As Notesuidocument, Continue As Variant)
  1518. Declare Sub Queryclose(Source As Notesuidocument, Continue As Variant)
  1519. '++LotusScript Development Environment:2:5:(Declarations):0:2
  1520. '++LotusScript Development Environment:2:2:BindEvents:1:129
  1521. Private Sub BindEvents(Byval Objectname_ As String)
  1522.      Static Source As NOTESUIDOCUMENT
  1523.      Set Source = Bind(Objectname_)
  1524.      On Event Queryopen From Source Call Queryopen
  1525.      On Event Postopen From Source Call Postopen
  1526.      On Event Querymodechange From Source Call Querymodechange
  1527.      On Event Postmodechange From Source Call Postmodechange
  1528.      On Event Querysave From Source Call Querysave
  1529.      On Event Queryclose From Source Call Queryclose
  1530. End Sub
  1531. '++LotusScript Development Environment:2:2:Queryopen:1:12
  1532. Sub Queryopen(Source As Notesuidocument, Mode As Integer, Isnewdoc As Variant, Continue As Variant)
  1533.      
  1534. 'If it is a new doc, there is no note yet, so we cannot initialize it from here
  1535.      If IsNewDoc Then Exit Sub
  1536.      
  1537.      Call InitializeDocument(source)    
  1538.      
  1539.      If Mode = 1 Then
  1540.           If DocIsLocked Then
  1541.                Messagebox "This document is being edited by " & LockedBy(0) & ".  Please try later.",_
  1542.                0 + 48, "Document Library"
  1543.                Continue = False
  1544.           Else
  1545. 'If this is a Document Reservations review, then lock this doc     
  1546.                If note.ReviewStyle(0) = "Parallel.NoVersions" Then
  1547.                     note.Locked = CurrentUser
  1548.                     note.DocumentAuthors = CurrentUser
  1549.                     If note.DocumentReaders(0) = "" Then note.RemoveItem("DocumentReaders")
  1550.                     On Error Goto SaveError
  1551.                     note.save True, True
  1552.                End If
  1553.           End If
  1554.      End If
  1555.      
  1556.      Exit Sub
  1557.      
  1558. SaveError:
  1559.      
  1560.      Messagebox "This document is currently in use.  Please try later.",_
  1561.      0 + 48, "Document Library"
  1562.      Continue = False
  1563.      Exit Sub
  1564.      
  1565. End Sub
  1566. '++LotusScript Development Environment:2:2:Postopen:1:12
  1567. Sub Postopen(Source As Notesuidocument)
  1568.      
  1569. 'This allows us to reference the UI Document in areas where source represents a different object     
  1570.      Set doc = source
  1571.      
  1572. 'If it is a new doc, we initialize it here.  Existing docs are initialized in Queryopen because it is faster (one less refresh is required)    
  1573.      If source.IsNewDoc Then
  1574.           Call InitializeDocument(source)
  1575.           source.Reload
  1576.           source.RefreshHideFormulas
  1577.      Else
  1578. 'If the doc was opened in edit mode, it may be a review initiation (this routine is also executed on mode change)         
  1579.           If source.EditMode = True Then
  1580.                Status = note.Status
  1581.                If Status(0) = StatusList(3) Then Call InitiateReview(source)
  1582.           End If         
  1583.      End If
  1584.      
  1585. End Sub
  1586. '++LotusScript Development Environment:2:2:Querymodechange:1:12
  1587. Sub Querymodechange(Source As Notesuidocument, Continue As Variant)
  1588.      
  1589. 'If the doc is locked, do not allow them to put in in edit mode     
  1590.      If source.EditMode = False And note.ReviewStyle(0) = "Parallel.NoVersions" Then
  1591.           If Not DocIsLocked Then
  1592.                SavedUNID = note.UniversalId
  1593.                Delete note
  1594.                Set tempnote = db.GetDocumentByUNID(SavedUNID)
  1595.                If tempnote.HasItem("Locked") Then 
  1596.                     DocIsLocked = True
  1597.                     LockedBy = tempnote.Locked
  1598.                End If                   
  1599.                Delete tempnote
  1600.                Set note = source.Document
  1601.           End If
  1602.           If DocIsLocked Then
  1603.                Messagebox "This document is being edited by " & LockedBy(0) & ".  Please try later.",_
  1604.                0 + 48, "Document Library"
  1605.                Continue = False
  1606.           Else
  1607.                note.Locked = CurrentUser
  1608.                note.DocumentAuthors = CurrentUser
  1609.                If note.DocumentReaders(0) = "" Then note.RemoveItem("DocumentReaders")
  1610.                On Error Goto SaveError
  1611.                note.save True, True
  1612.           End If
  1613.      End If
  1614.      
  1615.      Exit Sub
  1616.      
  1617. SaveError:
  1618.      
  1619.      Messagebox "This document is currently in use.  Please try later.",_
  1620.      0 + 48, "Document Library"
  1621.      Continue = False
  1622.      Exit Sub
  1623.      
  1624. End Sub
  1625. '++LotusScript Development Environment:2:2:Postmodechange:1:12
  1626. Sub Postmodechange(Source As Notesuidocument)
  1627.      
  1628. 'Putting the doc in edit mode might be a review initiation (this routine is also executed if the doc is opend in edit mode)
  1629.      If Source.EditMode = True Then
  1630.           Status = note.Status
  1631.           If Status(0) = StatusList(3) Then Call InitiateReview(source)
  1632.      End If
  1633.      
  1634. End Sub
  1635. '++LotusScript Development Environment:2:2:Querysave:1:12
  1636. Sub Querysave(Source As Notesuidocument, Continue As Variant)
  1637.      
  1638.      If FinalSave Then Exit Sub
  1639.      
  1640.      On Error Resume Next
  1641.      
  1642. 'All routing logic is driven from here.  The Action buttons set the tmpAction value which drives processing.
  1643.      Status = note.Status
  1644.      
  1645. 'If Subject is blank, be sure they enter it here     
  1646.      Subject = note.Subject
  1647.      If Subject(0) = "" Then
  1648.           Subject(0) = Inputbox("Please enter a Title for this document.", "Document Library", "(Untitled)")
  1649.           If Subject(0) = "" Then
  1650.                Continue = False
  1651.                Exit Sub
  1652.           End If
  1653.      End If
  1654.      note.Subject = Subject(0)
  1655.      
  1656. 'Be sure that versions do not get $Ref stripped off
  1657.      If note.IsResponse Then Call note.ReplaceItemValue("$RefOptions", "1")
  1658.      
  1659. 'InitiatingReview means that they are saving in order to generate a new version
  1660. 'Status 1 means there is no review cycle.  In both cases we don't need to execute the rest of the logic here.     
  1661.      If InitiatingReview Or Status(0) = StatusList(1) Then
  1662.           source.Reload
  1663.           Exit Sub
  1664.      Else
  1665.           Print "Saving Document"
  1666.      End If      
  1667.      
  1668. 'Find out which kind of a review we are doing     
  1669.      GetReviewSequence
  1670.      
  1671. 'Get the Action type and the Reviewer list     
  1672.      Action = note.tmpAction
  1673.      Reviewers = note.Reviewers
  1674.      
  1675. 'Decide how to process based on which Action button was pressed
  1676.      Select Case Action(0)
  1677. 'On Submit - build the current and future reviewer lists and send notification to the appropriate person(s)          
  1678.      Case "Submit"
  1679.           note.Status = StatusList(3)
  1680.           SetReviewerLists        
  1681.           SendNotification
  1682. 'On Completion of a review - if it is a response, lock the parent because we are going to update it
  1683.      Case "Complete"
  1684.           If note.IsResponse Then
  1685.                parentid = note.ParentDocumentUNID
  1686.                Set parent = db.GetDocumentByUNID(parentid)
  1687.                parent.Locked = CurrentUser
  1688.                ParentIsLocked = True
  1689.                parent.save True, True
  1690.           End If
  1691. 'Rebuild the previous, current, and future reviewer lists and send notificationto the appropriate person(s)
  1692.           SetReviewerLists
  1693.           SendNotification
  1694. 'Get the name of the person(s) currently reviewing this document (actively reviewing it means they have started
  1695. 'reviewing it, rather than just being on the CurrentReviewer list)          
  1696.           InProcess = note.InProcess
  1697.           CompareValue = CurrentUser
  1698. 'Pull CurrentUser out of the InProcess list          
  1699.           Call RebuildList(InProcess)
  1700.           Call note.ReplaceItemValue("InProcess", tmpList)
  1701.           CurrentReviewers = note.CurrentReviewers
  1702. 'If CurrentReviewers = None (already set in the SetReviewerLists routine) then all reviews are complete so reset status
  1703.           If CurrentReviewers(0) = "None" Then note.Status = StatusList(4)
  1704. 'If the parent is locked then unlock it          
  1705.           If ParentIsLocked Then
  1706.                CurrentReviewers = parent.CurrentReviewers
  1707.                If CurrentReviewers(0) = "None" Then
  1708.                     parent.Status = StatusList(4)
  1709.                     parent.RemoveItem("DueDate")
  1710.                End If
  1711.                parent.RemoveItem("Locked")
  1712.                ParentIsLocked = False
  1713.                parent.Save True, True
  1714.           End If
  1715.      End Select
  1716.      
  1717. 'Reset $VersionOpt to 0 to prevent further versioning
  1718.      If note.HasItem("$VersionOpt") Then Call note.ReplaceItemValue("$VersionOpt", "0")
  1719.      
  1720. 'Set the DocWasSaved flag so the Queryclose event knows about it     
  1721.      DocWasSaved = True
  1722.      
  1723.      source.Reload
  1724.      
  1725.      Print
  1726.      
  1727. End Sub
  1728. '++LotusScript Development Environment:2:2:Queryclose:1:12
  1729. Sub Queryclose(Source As Notesuidocument, Continue As Variant)
  1730.      
  1731.      On Error Goto ErrorRoutine
  1732.      
  1733. 'If the doc wasn't saved, we do not need to execute the rest of the logic in this event     
  1734.      If DocWasSaved Or note.Locked(0) <> "" Then    
  1735.           Print "Closing Document"
  1736.      Else
  1737.           Exit Sub
  1738.      End If
  1739.      
  1740.      Action = note.tmpAction
  1741.      
  1742. 'A backend save (note.save) saves every field that it knows about, which is every field on the form.  It does not
  1743. 'distinguish between ComputedForDisplay and data fields (the backend classes have no such UI constraints).
  1744. 'Consequently, we delete all ComputedForDisplay and other temporary fields     
  1745.      itemlist = note.Items
  1746.      Forall n In itemlist
  1747.           If Lcase(Left(n.Name, 3)) = "tmp" Then n.Remove
  1748.      End Forall
  1749.      Scope = note.Scope
  1750.      CurrentReviewers = note.CurrentReviewers
  1751.      Status = note.Status
  1752.      
  1753. 'We reset the author names here because the UI save has already occurred (so we can).
  1754. 'The new authornames will take effect the next time the doc is accessed.     
  1755.      If Scope(0) = "Public" Then note.RemoveItem("DocumentReaders")
  1756.      If Status(0) = StatusList(1) Or Status(0) = StatusList(2) Then
  1757.           note.DocumentAuthors = Originator(0)
  1758.      Else
  1759.           ResetAuthorNames
  1760.      End If
  1761.      
  1762.      If note.HasItem("SaveOptions") Then note.RemoveItem("SaveOptions")
  1763.      If note.Locked(0) = CurrentUser Then 
  1764.           note.RemoveItem("Locked")
  1765.      Else
  1766.           If DocIsLocked Then Exit Sub         
  1767.      End If
  1768.      
  1769.      FinalSave = True
  1770.      source.Reload
  1771.      source.Refresh
  1772.      source.Save
  1773.      
  1774.      w.ViewRefresh
  1775.      Print
  1776.      
  1777. ErrorRoutine:
  1778.      Exit Sub
  1779.      
  1780. End Sub
  1781. ,    ,    ,
  1782. `    `    p
  1783. [,    I$
  1784. -<    #8$
  1785.     DocumentWorkflow Subform
  1786.     :  This Subform includes the LotusScript, Actions, and hidden fields which are used in all versions of the Document form.
  1787.     Hidden Fields:-------------------------------------------------------------------
  1788. DocumentAuthors
  1789.     4S6S
  1790. DocumentAuthors
  1791. Scope
  1792. Private
  1793. Reviewers
  1794.     3S4S6S7S8S10SDocumentReaders
  1795. LastEditor
  1796. Mark PrivateF
  1797. Scope
  1798. Private
  1799.     1S2S3S
  1800. Scope
  1801. Private
  1802.     1S2S
  1803. Mark Public&D
  1804. Scope
  1805. Public
  1806.     1S2S3S
  1807. Scope
  1808. Public
  1809. Scope
  1810.     1S2S3S4S
  1811. Submit for Reviewe
  1812. Reviewers
  1813. Reviewers
  1814.     1S2S3S
  1815. Reviewers
  1816. Document Library
  1817. Please indicate who should review this document.
  1818.     0RR6S7S9S15S17S21S
  1819. Reviewers
  1820. Froma
  1821. Document Library
  1822. The Originator cannot be on the reviewer list.
  1823.     0RR9S15S21S23S27S
  1824. tmpAction
  1825. Submit
  1826.     0RR1S2S3S
  1827. SaveOptions
  1828.     0R1S2S3S
  1829. GoToField causes any active embedded objects to de-activate
  1830.     0R1S
  1831.     0R4S
  1832.     0R7S12S>
  1833. Status
  1834. StatusListv
  1835.     5S7S8S
  1836. Setup Review Cycle
  1837. GetReviewCycle
  1838. Status
  1839. StatusList
  1840. ReviewCycle
  1841. ReviewStyle
  1842. ReviewWindow
  1843. ReviewTime
  1844. NotifyAfter
  1845. SaveChoices
  1846.     1S2S5S6S10S13S18S21S22S23S24S25S26S27S28S30S
  1847. ReviewCycle
  1848. GetReviewCycle
  1849. GetReviewCycle
  1850.     0RR1S2S5S6S8S10S14S
  1851. ReviewStyle
  1852. ReviewCycle
  1853. Serial.NoVersions
  1854. ReviewCycle
  1855.     0RR1S2S3S9S10S12S14S18S
  1856. ReviewWindow
  1857. ReviewCycle
  1858. NoLimit
  1859. ReviewCycle
  1860.     0R1S2S3S9S10S12S14S20S23S
  1861. ReviewTime
  1862. ReviewCycle
  1863. ReviewCycle
  1864.     0R1S2S3S9S10S12S14S20S23S
  1865. NotifyAfter
  1866. ReviewCycle
  1867. Final
  1868. ReviewCycle
  1869.     0R1S2S3S9S10S12S14S20S23S
  1870. SaveChoices
  1871. ReviewCycle
  1872. ReviewCycle
  1873.     0R1S2S3S9S10S12S14S18S
  1874. ReviewOptions
  1875. Review Cycle
  1876.     0RR10S12S13S15S20S
  1877. Status
  1878. StatusList
  1879.     0RR1S2S3S9S12S
  1880. ReviewCycle
  1881. SaveChoices
  1882. ReviewStyle
  1883. ReviewWindow
  1884. ReviewTime
  1885. NotifyAfter
  1886. SaveChoices
  1887.     0R1S2S3S6S7S9S11S14S15S16S17S18S19S20S21S23S
  1888. ReviewTime
  1889. ReviewWindow
  1890. NoLimit
  1891. ReviewTimeX
  1892.     0RR1S2S3S6S7S9S11S
  1893. tmpReviewUnits
  1894. ReviewWindow
  1895. NoLimit
  1896. day(s)
  1897.     0R1S2S3S6S7S9S11S
  1898. these are posted commands so that they do not execute until after the section is fully expanded (because the field it is going to is inside the section)
  1899.     0RR1S
  1900. Reviewers
  1901.     0R4S
  1902. tmpCurrentUser
  1903. Status
  1904. StatusListv
  1905.     1S2S6S8S9S13S15S16S
  1906. Clear Review Cycle
  1907. InReview
  1908. Status
  1909. StatusListv
  1910.     1S2S8S10S11S13S15S
  1911. ReviewerList
  1912. InReview
  1913. CurrentReviewers
  1914.     0R1S2S6S8S
  1915. Status
  1916. StatusList
  1917.     0RR1S2S3S7S
  1918. ReviewSequence
  1919. All Reviewers simultaneously
  1920.     0R1S2S3S
  1921. Versioning
  1922. Edit Original Document
  1923.     0R1S2S3S
  1924. NotifyAfter
  1925. Notify Originator after each Reviewer
  1926.     0R1S2S3S
  1927. Reviewers
  1928.     0R1S2S3S
  1929. PreviousReviewers
  1930.     0R1S2S3S
  1931. CurrentReviewers
  1932.     0R1S2S3S
  1933. FutureReviewers
  1934.     0R1S2S3S
  1935. $VersionOpt
  1936.     0R1S2S3S
  1937. InReview
  1938. ReviewerList
  1939. Review of document:  
  1940. Subject
  1941. I no longer require you to review this document.  Thank you for your efforts.
  1942. tmpCurrentUser"
  1943. Subject
  1944.     0RR4S8S10S12S13S14S16S18S19S20S24S26S27S28S29S33S35S36S37S38S40S41S42S45S
  1945. Document Library
  1946. The Review Cycle has been cleared.
  1947.     0RR4S6S
  1948. tmpCurrentUser
  1949. Status
  1950. StatusListv
  1951.     1S2S6S8S9S13S15S16S17S18S19S20S
  1952. My Review is Complete
  1953. tmpAction
  1954. Complete
  1955.     1S2S3S
  1956. SaveOptions
  1957.     0R1S2S3S
  1958. GoToField causes any active embedded objects to de-activate
  1959.     0RR1S
  1960.     0R4S
  1961.     0R7S12S4
  1962. tmpCurrentUser
  1963. InProcess
  1964. O=Lotus Notes
  1965. O=Lotus Notes
  1966. PURSAFO
  1967. |.:#U
  1968. O=Lotus Notes
  1969. CN=Lotus Notes Template Development/O=Lotus Notes
  1970. PURSAFO
  1971. Fde!f^^
  1972. $TITLE
  1973. $Info
  1974. $Script
  1975. $$Script_O
  1976. $$ScriptName
  1977. $$FormScript
  1978. $$$FormScript_O
  1979. $Body
  1980. $ACTIONS
  1981. FBody
  1982. New 123 Worksheet
  1983. Subject
  1984.     4S6S
  1985. '++LotusScript Development Environment:2:5:(Options):0:66
  1986. Option Public
  1987. '++LotusScript Development Environment:2:5:(Forward):0:1
  1988. '++LotusScript Development Environment:2:5:(Declarations):0:10
  1989. Dim formdoc As NotesUIDocument
  1990.  123Worksheet Document'++LotusScript Development Environment:2:5:(Options):0:66
  1991. '++LotusScript Development Environment:2:5:(Forward):0:1
  1992. Declare Sub Postopen(Source As Notesuidocument)
  1993. '++LotusScript Development Environment:2:5:(Declarations):0:2
  1994. '++LotusScript Development Environment:2:2:BindEvents:1:129
  1995. Private Sub BindEvents(Byval Objectname_ As String)
  1996.      Static Source As NOTESUIDOCUMENT
  1997.      Set Source = Bind(Objectname_)
  1998.      On Event Postopen From Source Call Postopen
  1999. End Sub
  2000. '++LotusScript Development Environment:2:2:Postopen:1:12
  2001. Sub Postopen(Source As Notesuidocument)
  2002.      Set formdoc = source
  2003. End Sub
  2004. '++LotusScript Development Environment:2:5:(Options):0:66
  2005. '++LotusScript Development Environment:2:5:(Forward):0:1
  2006. Declare Sub Exiting(Source As Field)
  2007. '++LotusScript Development Environment:2:5:(Declarations):0:2
  2008. '++LotusScript Development Environment:2:2:BindEvents:1:129
  2009. Private Sub BindEvents(Byval Objectname_ As String)
  2010.      Static Source As FIELD
  2011.      Set Source = Bind(Objectname_)
  2012.      On Event Exiting From Source Call Exiting
  2013. End Sub
  2014. '++LotusScript Development Environment:2:2:Exiting:1:12
  2015. Sub Exiting(Source As Field)
  2016.      formdoc.refresh
  2017. End Sub
  2018. DocumentWorkflow
  2019.     DocumentWorkflow Subform
  2020.     :  This Subform includes the LotusScript, Actions, and hidden fields which are used in all versions of the Document form.
  2021.     Hidden Fields:-------------------------------------------------------------------
  2022. DocumentAuthors
  2023.     4S6S
  2024. DocumentAuthors
  2025. Scope
  2026. Private
  2027. Reviewers
  2028.     3S4S6S7S8S10SDocumentReaders
  2029. LastEditor
  2030. _ViewIcon
  2031. Scope
  2032. Public
  2033.     1S2S
  2034. <a>7`^
  2035. `!bb!R
  2036. Title:
  2037. Subject
  2038.     0S0E
  2039. SubjectRequired: description of this document 
  2040.     Created by:    
  2041. FromDocument author name
  2042.      on 
  2043. DateThe date/time when the document was composed
  2044.      at 
  2045. TimeCreated
  2046.     Category
  2047. Miscellaneous
  2048. Categories
  2049. You must enter a category for your document
  2050.     3S4S6S11SCategoriesPress ENTER for list of keywords or to add a new keyword
  2051. ($All)
  2052.     4S6S
  2053. Status
  2054. StatusListv
  2055.     4S6S7S8S9S
  2056.     Reviewers:    
  2057. Reviewers
  2058. Reviewers
  2059. Reviewers
  2060. Status
  2061. StatusListv
  2062. PreviousReviewers
  2063.     4S6S7S8S9S10S11S12S13S
  2064.     Previous reviewers:
  2065. PreviousReviewers
  2066. PreviousReviewers
  2067. Status
  2068. StatusListv
  2069.     4S6S7S8S9S
  2070.     Current reviewer:    
  2071. CurrentReviewers
  2072. CurrentReviewers
  2073. Status
  2074. StatusListv
  2075. FutureReviewers
  2076.     4S6S7S8S9S10S11S12S13S
  2077.     Future reviewers:
  2078. FutureReviewers
  2079. FutureReviewers
  2080. Status
  2081. StatusListv
  2082. Status
  2083. StatusListv
  2084.     4S6S7S8S9S13S15S16S17S18S
  2085.     Review type:
  2086. ReviewStyle
  2087. ReviewStyle
  2088. Serial review | Serial.NoVersionsSerial (keep all revisions) | Serial.VersionsDocument reservations | Parallel.NoVersionsResponse review | Parallel.Versions
  2089.     Deadline:
  2090. ReviewWindow
  2091. ReviewWindow
  2092. No time limit for each review | NoLimitMove to next reviewer after: | MoveOnKeep sending reminders after: | Reminder
  2093. ReviewTime
  2094. ReviewTime
  2095. ReviewWindow
  2096. NoLimit
  2097. day(s)
  2098.     3S4S6S8S
  2099. tmpReviewUnits
  2100.     Notification:
  2101. NotifyAfter
  2102. NotifyAfter
  2103. Notify originator after each reviewer | EachNotify originator after final reviewer | Final
  2104.     ....................
  2105. ReviewerLog
  2106.     1S2S3S4S
  2107. Reviewer Log
  2108. ReviewerLog
  2109.     1S2S
  2110. ReviewerLog
  2111. ReviewerLog
  2112. BodyEnter the text (or a description) of the document.
  2113. Close
  2114.     0S0E
  2115. _Edit Document
  2116. DocumentAuthors
  2117.     9S15S
  2118. Categori_ze
  2119. _Forward
  2120. _Move to Folder...
  2121. _Remove from Folder
  2122. Send Docu_ment
  2123. O=Lotus Notes
  2124. O=Lotus Notes
  2125. PURSAFO
  2126. |.:#U
  2127. O=Lotus Notes
  2128. CN=Lotus Notes Template Development/O=Lotus Notes
  2129. PURSAFO
  2130. Fde!f^^
  2131. g2ACZ
  2132. $TITLE
  2133. $AUTOLAUNCH
  2134. $Info
  2135. $SubForms
  2136. $WindowTitle
  2137. $Script
  2138. $$Script_O
  2139. $$ScriptName
  2140. $$FormScript
  2141. $$$FormScript_O
  2142. $$Reviewers
  2143. $Reviewers_O
  2144. _ViewIcon
  2145. TimeCreated
  2146. $Body
  2147. $ACTIONS
  2148. New Freelance Presentation
  2149. Subject
  2150.     4S6S
  2151. '++LotusScript Development Environment:2:5:(Options):0:66
  2152. Option Public
  2153. '++LotusScript Development Environment:2:5:(Forward):0:1
  2154. '++LotusScript Development Environment:2:5:(Declarations):0:10
  2155. Dim formdoc As NotesUIDocument
  2156.  Freelance Document'++LotusScript Development Environment:2:5:(Options):0:66
  2157. '++LotusScript Development Environment:2:5:(Forward):0:1
  2158. Declare Sub Postopen(Source As Notesuidocument)
  2159. '++LotusScript Development Environment:2:5:(Declarations):0:2
  2160. '++LotusScript Development Environment:2:2:BindEvents:1:129
  2161. Private Sub BindEvents(Byval Objectname_ As String)
  2162.      Static Source As NOTESUIDOCUMENT
  2163.      Set Source = Bind(Objectname_)
  2164.      On Event Postopen From Source Call Postopen
  2165. End Sub
  2166. '++LotusScript Development Environment:2:2:Postopen:1:12
  2167. Sub Postopen(Source As Notesuidocument)
  2168.      Set formdoc = source
  2169. End Sub
  2170. '++LotusScript Development Environment:2:5:(Options):0:66
  2171. '++LotusScript Development Environment:2:5:(Forward):0:1
  2172. Declare Sub Exiting(Source As Field)
  2173. '++LotusScript Development Environment:2:5:(Declarations):0:2
  2174. '++LotusScript Development Environment:2:2:BindEvents:1:129
  2175. Private Sub BindEvents(Byval Objectname_ As String)
  2176.      Static Source As FIELD
  2177.      Set Source = Bind(Objectname_)
  2178.      On Event Exiting From Source Call Exiting
  2179. End Sub
  2180. '++LotusScript Development Environment:2:2:Exiting:1:12
  2181. Sub Exiting(Source As Field)
  2182.      formdoc.refresh
  2183. End Sub
  2184. DocumentWorkflow
  2185.     DocumentWorkflow Subform
  2186.     :  This Subform includes the LotusScript, Actions, and hidden fields which are used in all versions of the Document form.
  2187.     Hidden Fields:-------------------------------------------------------------------
  2188. DocumentAuthors
  2189.     4S6S
  2190. DocumentAuthors
  2191. Scope
  2192. Private
  2193. Reviewers
  2194.     3S4S6S7S8S10SDocumentReaders
  2195. LastEditor
  2196. _ViewIcon
  2197. Scope
  2198. Public
  2199.     1S2S
  2200. <a>7`^
  2201. `!bb!R
  2202. Title:
  2203. Subject
  2204.     0S0E
  2205. SubjectRequired: description of this document 
  2206.     Created by:    
  2207. FromDocument author name
  2208.      on 
  2209. DateThe date/time when the document was composed
  2210.      at 
  2211. TimeCreated
  2212.     Category
  2213. Miscellaneous
  2214. Categories
  2215. You must enter a category for your document
  2216.     3S4S6S11SCategoriesPress ENTER for list of keywords or to add a new keyword
  2217. ($All)
  2218.     4S6S
  2219. Status
  2220. StatusListv
  2221.     4S6S7S8S9S
  2222.     Reviewers:    
  2223. Reviewers
  2224. Reviewers
  2225. Reviewers
  2226. Status
  2227. StatusListv
  2228. PreviousReviewers
  2229.     4S6S7S8S9S10S11S12S13S
  2230.     Previous reviewers:
  2231. PreviousReviewers
  2232. PreviousReviewers
  2233. Status
  2234. StatusListv
  2235.     4S6S7S8S9S
  2236.     Current reviewer:    
  2237. CurrentReviewers
  2238. CurrentReviewers
  2239. Status
  2240. StatusListv
  2241. FutureReviewers
  2242.     4S6S7S8S9S10S11S12S13S
  2243.     Future reviewers:
  2244. FutureReviewers
  2245. FutureReviewers
  2246. Status
  2247. StatusListv
  2248. Status
  2249. StatusListv
  2250.     4S6S7S8S9S13S15S16S17S18S
  2251.     Review type:
  2252. ReviewStyle
  2253. ReviewStyle
  2254. Serial review | Serial.NoVersionsSerial (keep all revisions) | Serial.VersionsDocument reservations | Parallel.NoVersionsResponse review | Parallel.Versions
  2255.     Deadline:
  2256. ReviewWindow
  2257. ReviewWindow
  2258. No time limit for each review | NoLimitMove to next reviewer after: | MoveOnKeep sending reminders after: | Reminder
  2259. ReviewTime
  2260. ReviewTime
  2261. ReviewWindow
  2262. NoLimit
  2263. day(s)
  2264.     3S4S6S8S
  2265. tmpReviewUnits
  2266.     Notification:
  2267. NotifyAfter
  2268. NotifyAfter
  2269. Notify originator after each reviewer | EachNotify originator after final reviewer | Final
  2270.     ....................
  2271. ReviewerLog
  2272.     1S2S3S4S
  2273. Reviewer Log
  2274. ReviewerLog
  2275.     1S2S
  2276. ReviewerLog
  2277. ReviewerLog
  2278. BodyEnter the text (or a description) of the document.
  2279. Close
  2280.     0S0E
  2281. _Edit Document
  2282. DocumentAuthors
  2283.     9S15S
  2284. Categori_ze
  2285. _Forward
  2286. _Move to Folder...
  2287. _Remove from Folder
  2288. Send Docu_ment
  2289. O=Lotus Notes
  2290. O=Lotus Notes
  2291. PURSAFO
  2292. |.:#U
  2293. O=Lotus Notes
  2294. CN=Lotus Notes Template Development/O=Lotus Notes
  2295. PURSAFO
  2296. Fde!f^^
  2297. $TITLE
  2298. $AUTOLAUNCH
  2299. $Info
  2300. $SubForms
  2301. $WindowTitle
  2302. $Script
  2303. $$Script_O
  2304. $$ScriptName
  2305. $$FormScript
  2306. $$$FormScript_O
  2307. $$Reviewers
  2308. $Reviewers_O
  2309. _ViewIcon
  2310. TimeCreated
  2311. $Body
  2312. $ACTIONS
  2313. New WordPro Document
  2314. Subject
  2315.     4S6S
  2316. '++LotusScript Development Environment:2:5:(Options):0:66
  2317. Option Public
  2318. '++LotusScript Development Environment:2:5:(Forward):0:1
  2319. '++LotusScript Development Environment:2:5:(Declarations):0:10
  2320. Dim formdoc As NotesUIDocument
  2321.  WordPro Document'++LotusScript Development Environment:2:5:(Options):0:66
  2322. '++LotusScript Development Environment:2:5:(Forward):0:1
  2323. Declare Sub Postopen(Source As Notesuidocument)
  2324. '++LotusScript Development Environment:2:5:(Declarations):0:2
  2325. '++LotusScript Development Environment:2:2:BindEvents:1:129
  2326. Private Sub BindEvents(Byval Objectname_ As String)
  2327.      Static Source As NOTESUIDOCUMENT
  2328.      Set Source = Bind(Objectname_)
  2329.      On Event Postopen From Source Call Postopen
  2330. End Sub
  2331. '++LotusScript Development Environment:2:2:Postopen:1:12
  2332. Sub Postopen(Source As Notesuidocument)
  2333.      Set formdoc = source
  2334. End Sub
  2335. '++LotusScript Development Environment:2:5:(Options):0:66
  2336. '++LotusScript Development Environment:2:5:(Forward):0:1
  2337. Declare Sub Exiting(Source As Field)
  2338. '++LotusScript Development Environment:2:5:(Declarations):0:2
  2339. '++LotusScript Development Environment:2:2:BindEvents:1:129
  2340. Private Sub BindEvents(Byval Objectname_ As String)
  2341.      Static Source As FIELD
  2342.      Set Source = Bind(Objectname_)
  2343.      On Event Exiting From Source Call Exiting
  2344. End Sub
  2345. '++LotusScript Development Environment:2:2:Exiting:1:12
  2346. Sub Exiting(Source As Field)
  2347.      formdoc.refresh
  2348. End Sub
  2349. DocumentWorkflow
  2350.     DocumentWorkflow Subform
  2351.     :  This Subform includes the LotusScript, Actions, and hidden fields which are used in all versions of the Document form.
  2352.     Hidden Fields:-------------------------------------------------------------------
  2353. DocumentAuthors
  2354.     4S6S
  2355. DocumentAuthors
  2356. Scope
  2357. Private
  2358. Reviewers
  2359.     3S4S6S7S8S10SDocumentReaders
  2360. LastEditor
  2361. _ViewIcon
  2362. Scope
  2363. Public
  2364.     1S2S
  2365. <a>7`^
  2366. `!bb!R
  2367. Title:
  2368. Subject
  2369.     0S0E
  2370. SubjectRequired: description of this document 
  2371.     Created by:    
  2372. FromDocument author name
  2373.      on 
  2374. DateThe date/time when the document was composed
  2375.      at 
  2376. TimeCreated
  2377.     Category
  2378. Miscellaneous
  2379. Categories
  2380. You must enter a category for your document
  2381.     3S4S6S11SCategoriesPress ENTER for list of keywords or to add a new keyword
  2382. ($All)
  2383.     4S6S
  2384. Status
  2385. StatusListv
  2386.     4S6S7S8S9S
  2387.     Reviewers:    
  2388. Reviewers
  2389. Reviewers
  2390. Reviewers
  2391. Status
  2392. StatusListv
  2393. PreviousReviewers
  2394.     4S6S7S8S9S10S11S12S13S
  2395.     Previous reviewers:
  2396. PreviousReviewers
  2397. PreviousReviewers
  2398. Status
  2399. StatusListv
  2400.     4S6S7S8S9S
  2401.     Current reviewer:    
  2402. CurrentReviewers
  2403. CurrentReviewers
  2404. Status
  2405. StatusListv
  2406. FutureReviewers
  2407.     4S6S7S8S9S10S11S12S13S
  2408.     Future reviewers:
  2409. FutureReviewers
  2410. FutureReviewers
  2411. Status
  2412. StatusListv
  2413. Status
  2414. StatusListv
  2415.     4S6S7S8S9S13S15S16S17S18S
  2416.     Review type:
  2417. ReviewStyle
  2418. ReviewStyle
  2419. Serial review | Serial.NoVersionsSerial (keep all revisions) | Serial.VersionsDocument reservations | Parallel.NoVersionsResponse review | Parallel.Versions
  2420.     Deadline:
  2421. ReviewWindow
  2422. ReviewWindow
  2423. No time limit for each review | NoLimitMove to next reviewer after: | MoveOnKeep sending reminders after: | Reminder
  2424. ReviewTime
  2425. ReviewTime
  2426. ReviewWindow
  2427. NoLimit
  2428. day(s)
  2429.     3S4S6S8S
  2430. tmpReviewUnits
  2431.     Notification:
  2432. NotifyAfter
  2433. NotifyAfter
  2434. Notify originator after each reviewer | EachNotify originator after final reviewer | Final
  2435. Status
  2436. tmpStatusList
  2437. Status
  2438. tmpStatusList
  2439.     4S6S7S8S9S13S15S16S17S18S
  2440.     ....................
  2441. ReviewerLog
  2442.     1S2S3S4S
  2443. Reviewer Log
  2444. ReviewerLog
  2445.     1S2S
  2446. ReviewerLog
  2447. ReviewerLog
  2448. BodyEnter the text (or a description) of the document.
  2449. Close
  2450.     0S0E
  2451. _Edit Document
  2452. DocumentAuthors
  2453.     9S15S
  2454. Categori_ze
  2455. _Forward
  2456. _Move to Folder...
  2457. _Remove from Folder
  2458. Send Docu_ment
  2459. O=Lotus Notes
  2460. O=Lotus Notes
  2461. PURSAFO
  2462. |.:#U
  2463. O=Lotus Notes
  2464. CN=Lotus Notes Template Development/O=Lotus Notes
  2465. PURSAFO
  2466. Fde!f^^
  2467. 7m@^-
  2468. $TITLE
  2469. $AUTOLAUNCH
  2470. $Info
  2471. $SubForms
  2472. $WindowTitle
  2473. $Script
  2474. $$Script_O
  2475. $$ScriptName
  2476. $$FormScript
  2477. $$$FormScript_O
  2478. $$Reviewers
  2479. $Reviewers_O
  2480. _ViewIcon
  2481. TimeCreated
  2482. $Body
  2483. $ACTIONS
  2484. Process Late Reviews
  2485. Selects those documents which are in review and have due dates which have passed.  Based upon the review style of the document, it then either moves it along to the next reviewer, marks it as complete, or simply notifies the current reviewer(s) that their review is overdue.1
  2486. CN=Ryan Jansen/O=IrisCN=Lotus Notes Template Development/O=Lotus NotesStdR4DocLibSfL3h
  2487. Periodic Archive
  2488. StdR4DocLibSfL3
  2489. CN=Ryan Jansen/O=IrisCN=Lotus Notes Template Development/O=Lotus Notes
  2490. ##################################
  2491. 255D2116B7BDFECF1769F57E5917AA29Lotus Notes
  2492. Archive ProfileArchiveProfileArchive ProfileStdR4DocLibCD
  2493. CN=Ryan Jansen/O=IrisCN=Lotus Notes Template Development/O=Lotus Notes########################
  2494. 255D2116B7BDFECF1769F57E5917AA29Lotus Notes
  2495. (Archive Log)Archive LogArchiveLog
  2496. CN=Ryan Jansen/O=IrisCN=Lotus Notes Template Development/O=Lotus NotesStdR4DocLibCD##########################################################
  2497. _Archiving|Archiving
  2498. Archive Logs
  2499. Archive Profile
  2500.     6S9S11S
  2501. $75$74Subject$Conflict
  2502. Archive
  2503.     L1S5S1(
  2504. $75$74Subject
  2505. Archive Logs
  2506. Archive Profile
  2507.     6S9S11S$74
  2508. SubjectDescription&
  2509. StdR4DocLibY
  2510. CN=Ryan Jansen/O=IrisCN=Lotus Notes Template Development/O=Lotus Notes###########
  2511. +"Dyv
  2512. (Unlock Document)Use if a doc is accidentally left in a locked state.  Can be accessed by designers and managers from the Review Status view.003
  2513. Lotus NotesCN=Lotus Notes Template Development/O=Lotus NotesStdR4DocLib
  2514. #########################################
  2515. (ArchiveProfileDlg)StdR4DocLibCD
  2516. CN=Ryan Jansen/O=IrisCN=Lotus Notes Template Development/O=Lotus Notes##################################################
  2517. ##########################################################
  2518. ##########################################################
  2519. ##########################################################
  2520. ##########################################################
  2521. '++LotusScript Development Environment:2:5:(Options):0:66
  2522. Option Public
  2523. '++LotusScript Development Environment:2:5:(Forward):0:1
  2524. Declare Sub Initialize
  2525. Declare Sub SendReminder(EmailType)
  2526. Declare Sub MoveToNextReviewer
  2527. '++LotusScript Development Environment:2:5:(Declarations):0:10
  2528. Dim s As NotesSession
  2529. Dim db As NotesDatabase
  2530. Dim view As NotesView
  2531. Dim documents As NotesDocumentCollection
  2532. Dim note As NotesDocument
  2533. Dim parent As NotesDocument
  2534. Dim emaildoc As NotesDocument
  2535. Dim dt As NotesDateTime
  2536. Dim item As NotesItem
  2537. Dim rtitem As NotesRichTextItem
  2538. Dim CurrentReviewers As Variant
  2539. Dim FutureReviewers As Variant
  2540. Dim ReviewSeq As Variant
  2541. Dim ReviewWindow As Variant
  2542. Dim NewList() As Variant
  2543. Dim ListMax As Integer
  2544. Dim NextReviewer As Variant
  2545. Dim OldDueDate As Variant
  2546. '++LotusScript Development Environment:2:2:Initialize:1:10
  2547. Sub Initialize
  2548.      
  2549.      Set s = New NotesSession    
  2550.      Set db = s.CurrentDatabase
  2551.      Set dt = New NotesDateTime("")
  2552.      dt.SetNow
  2553.      Set documents = db.Search("@Today => @Date(DueDateTime) & Status = ""In Review""", Nothing, 0)
  2554.      If documents.Count = 0 Then Exit Sub
  2555.      
  2556.      For d = 1 To documents.Count
  2557.           Set note = documents.GetNthDocument(d)
  2558.           ReviewWindow = note.ReviewWindow      
  2559.           Select Case ReviewWindow(0)
  2560.           Case "MoveOn"
  2561.                MoveToNextReviewer
  2562.                SendReminder("WindowExpired")
  2563.                If ReviewSeq = "Serial" Then
  2564.                     If FutureReviewers(0) <> "None" Then SendReminder("NotifyNextReviewer")
  2565.                End If
  2566.           Case "Reminder"
  2567.                CurrentReviewers = note.CurrentReviewers
  2568.                SendReminder("Reminder")
  2569.           End Select
  2570.           If note.IsResponse Then
  2571.                note.RemoveItem("DueDateTime")
  2572.                note.Save True, True
  2573.           End If
  2574.      Next
  2575.      
  2576. End Sub
  2577. '++LotusScript Development Environment:2:2:SendReminder:1:8
  2578. Sub SendReminder(EmailType)
  2579.      
  2580.      If note.IsResponse Then Exit Sub
  2581.      
  2582.      Set maildoc = New NotesDocument(db)
  2583.      Set rtitem = New NotesRichTextItem(maildoc, "Body")
  2584.      maildoc.InheritedSubject = note.Subject
  2585.      maildoc.InheritedDbTitle = db.Title
  2586.      
  2587.      Select Case EmailType
  2588.      Case "Reminder"
  2589.           maildoc.SendTo = CurrentReviewers
  2590.           maildoc.Subject = "Overdue Document Review"
  2591.           maildoc.FlowStatus = "Please complete your review of this document.  You will continue to receive these notifications until it is complete."
  2592.           Call rtitem.AppendDocLink(note, "DocLink to Overdue Document")
  2593.           maildoc.DueDateTime = OldDueDate
  2594.      Case "WindowExpired"
  2595.           maildoc.SendTo = CurrentReviewers
  2596.           maildoc.Subject = "Document Review Period has Expired"
  2597.           maildoc.FlowStatus = "The time limit for your review of this document has expired."
  2598.           Call rtitem.AppendDocLink(note, "DocLink to Overdue Document")
  2599.           maildoc.DueDateTime = OldDueDate
  2600.      Case "NotifyNextReviewer"
  2601.           maildoc.SendTo = note.CurrentReviewers
  2602.           maildoc.Subject = "Document Requires Review"
  2603.           maildoc.FlowStatus = "Please take the time to review this document before the date shown below."
  2604.           Call rtitem.AppendDocLink(note, "DocLink to Document requiring review")
  2605.           maildoc.DueDateTime = note.DueDateTime
  2606.      End Select
  2607.      
  2608.      maildoc.Form = "Bookmark"
  2609.      On Error Resume Next
  2610.      Call maildoc.Send (False)
  2611.      
  2612. End Sub
  2613. '++LotusScript Development Environment:2:2:MoveToNextReviewer:1:8
  2614. Sub MoveToNextReviewer
  2615.      
  2616.      ListMax = 0
  2617.      Set dt = New NotesDateTime("")
  2618.      dt.SetNow
  2619.      ReviewStyle = note.ReviewStyle
  2620.      position = Instr(ReviewStyle(0), ".")
  2621.      ReviewSeq = Left(ReviewStyle(0), position - 1)
  2622.      Versioning = Mid(ReviewStyle(0), position + 1)
  2623.      OldDueDate = Datevalue(note.DueDateTime(0))
  2624.      dt.LSLocalTime = OldDueDate
  2625.      ReviewerLogEntry = "Review period ended on " & Format(dt.LSLocalTime, "Short Date") & " without a completed review by "
  2626.      dt.SetNow
  2627.      
  2628.      Select Case ReviewSeq
  2629.      Case "Parallel"
  2630. 'For Response Reviews, we maintain the status in the parent so remove these
  2631.           If note.IsResponse Then 
  2632.                note.RemoveItem("PreviousReviewers")
  2633.                note.RemoveItem("CurrentReviewers")
  2634.                note.RemoveItem("FutureReviewers")
  2635.           Else
  2636. 'If it is a parent, move CurrentReviewers to PreviousReviewers and set CurrentReviewers to "None"               
  2637.                CurrentReviewers = note.CurrentReviewers
  2638.                LateReviewers = Evaluate("@Implode(CurrentReviewers; "", "")", note)
  2639.                Set item = note.GetFirstItem("ReviewerLog")
  2640.                item.AppendToTextList(ReviewerLogEntry & LateReviewers(0))
  2641.                PreviousReviewers = note.PreviousReviewers
  2642.                If PreviousReviewers(0) = "None" Then
  2643.                     note.PreviousReviewers = CurrentReviewers
  2644.                Else
  2645.                     Set item = note.GetFirstItem("PreviousReviewers")
  2646.                     item.AppendToTextList(CurrentReviewers)
  2647.                End If
  2648.                note.CurrentReviewers = "None"    
  2649.           End If
  2650.           note.InProcess = "None"
  2651.           note.Status = "Review Complete"
  2652.           note.RemoveItem("DueDateTime")
  2653.           note.DocumentAuthors = note.From
  2654.      Case "Serial"
  2655.           CurrentReviewers = note.CurrentReviewers         
  2656.           Set item = note.GetFirstItem("ReviewerLog")
  2657.           item.AppendToTextList(ReviewerLogEntry & CurrentReviewers(0))
  2658.           PreviousReviewers = note.PreviousReviewers
  2659.           If PreviousReviewers(0) = "None" Then
  2660.                note.PreviousReviewers = CurrentReviewers(0)
  2661.           Else              
  2662.                Set item = note.GetFirstItem("PreviousReviewers")
  2663.                item.AppendToTextList(CurrentReviewers(0))
  2664.           End If
  2665.           FutureReviewers = note.FutureReviewers
  2666. 'Put the first person in the future reviewers list in current reviewer and remove that person from future reviewers list
  2667.           note.CurrentReviewers = FutureReviewers(0)
  2668.           If Ubound(FutureReviewers) = 0 Then
  2669.                note.FutureReviewers = "None"
  2670.           Else
  2671.                ListMax = Ubound(FutureReviewers) - 1
  2672.                Redim NewList (ListMax)
  2673.                x = 0 
  2674.                For y = 1 To ListMax
  2675.                     NewList(x) = FutureReviewers(y)
  2676.                     x = x + 1
  2677.                Next
  2678.                note.FutureReviewers = NewList
  2679.           End If
  2680. 'Calculate when the review is due, based upon ReviewTime     
  2681.           If FutureReviewers(0) = "None" Then
  2682.                note.RemoveItem("DueDateTime")
  2683.                note.Status = "Review Complete"
  2684.                note.DocumentAuthors = note.From
  2685.           Else
  2686.                ReviewTime = note.ReviewTime
  2687.                dt.SetNow
  2688.                If Isnumeric(ReviewTime(0)) Then
  2689.                     dt.AdjustDay(ReviewTime(0))
  2690.                     note.DueDateTime = dt.LSLocalTime
  2691.                Else
  2692.                     note.RemoveItem("DueDateTime")
  2693.                End If
  2694.                Redim NewList(1)
  2695.                Originator = note.From
  2696.                NextReviewer = note.CurrentReviewers
  2697.                NewList(0) = Originator(0)
  2698.                NewList(1) = NextReviewer(0)
  2699.                note.DocumentAuthors = NewList
  2700.           End If
  2701.      End Select
  2702.      
  2703.      note.Save True, True
  2704.      
  2705. End Sub
  2706. CurrentReviewers
  2707. O=Lotus Notes
  2708. O=Lotus Notes
  2709. PURSAFO
  2710. |.:#U
  2711. O=Lotus Notes
  2712. CN=Lotus Notes Template Development/O=Lotus Notes
  2713. PURSAFO
  2714. Fde!f^^
  2715. $TITLE
  2716. $AssistType
  2717. $AssistLastRun
  2718. $AssistDocCount
  2719. $Comment
  2720. $AssistFlags
  2721. $AssistTrigger
  2722. $AssistInfo
  2723. $AssistQuery
  2724. $AssistAction
  2725. $AssistAction_Ex
  2726. GOLAx
  2727. Started running agent 'Mark/Unmark Document As Expired' on 07/20/96 02:03:32 PM
  2728. Running on selected documents: 1 total
  2729. Found 1 document(s) that match search criteria
  2730. 1 document(s) were modified by formula
  2731. Done running agent 'Mark/Unmark Document As Expired' on 07/20/96 02:03:39 PM
  2732. '++LotusScript Development Environment:2:5:(Options):0:66
  2733. Option Public
  2734. '++LotusScript Development Environment:2:5:(Forward):0:1
  2735. Declare Sub Initialize
  2736. Declare Sub ProcessDocument
  2737. '++LotusScript Development Environment:2:5:(Declarations):0:10
  2738. Dim session As NotesSession
  2739. Dim db As NotesDatabase
  2740. Dim documents As NotesDocumentCollection
  2741. Dim note As NotesDocument
  2742. '++LotusScript Development Environment:2:2:Initialize:1:10
  2743. Sub Initialize
  2744.      Set session = New NotesSession
  2745.      Set db = session.CurrentDatabase
  2746.      Set documents = db.UnprocessedDocuments
  2747.      
  2748.      Set note = documents.GetFirstDocument
  2749.      While Not (note Is Nothing)
  2750.           ProcessDocument
  2751.           Set note = documents.GetNextDocument(note)
  2752.      Wend
  2753. End Sub
  2754. '++LotusScript Development Environment:2:2:ProcessDocument:1:8
  2755. Sub ProcessDocument
  2756.      Dim ExpireError As String
  2757.      Dim dtNow As New NotesDateTime("")
  2758.      
  2759.      ExpireError = "This " & note.Form(0) & " cannot be marked as expired."
  2760.      
  2761. 'is this document is protected from archiving, ignore it
  2762.      If note.HasItem("ProtectFromArchive") Then Exit Sub
  2763.      
  2764. 'if this note does not have an ExpireDate value, set it to today
  2765.      If note.ExpireDate(0) = "" Then
  2766.           dtNow.SetNow
  2767.           note.ExpireDate = dtNow.LSLocalTime
  2768.           note.Save True,True
  2769.      Else
  2770.           Select Case Msgbox ("This document was marked expired on " & Cstr(note.ExpireDate(0)) & ".  Would you like to unmark it?",36,"Expire Date")
  2771.           Case 6
  2772.                note.RemoveItem "ExpireDate"
  2773.                note.Save True,True
  2774.           End Select
  2775.      End If
  2776. End Sub
  2777. O=Lotus Notes
  2778. O=Lotus Notes
  2779. PURSAFO
  2780. |.:#U
  2781. O=Lotus Notes
  2782. CN=Lotus Notes Template Development/O=Lotus Notes
  2783. PURSAFO
  2784. Fde!f^^
  2785. $TITLE
  2786. $AssistType
  2787. $AssistLastRun
  2788. $AssistDocCount
  2789. $AssistFlags
  2790. $AssistTrigger
  2791. $AssistInfo
  2792. $AssistQuery
  2793. $AssistAction
  2794. $AssistAction_Ex
  2795. '++LotusScript Development Environment:2:5:(Options):0:66
  2796. '++LotusScript Development Environment:2:5:(Forward):0:1
  2797. Declare Sub Initialize
  2798. Declare Sub Terminate
  2799. Declare Sub Main
  2800. Declare Sub GetProfileSettings
  2801. Declare Sub CreateLogDocument
  2802. Declare Sub ProcessDocuments
  2803. Declare Sub EvaluateDocument
  2804. Declare Sub ArchiveDocument
  2805. Declare Sub FixReaderNames
  2806. Declare Sub AddDocumentToLog
  2807. Declare Sub CloseLogDocument
  2808. Declare Sub MarkLogDocuments
  2809. '++LotusScript Development Environment:2:5:(Declarations):0:10
  2810. '%INCLUDE "lserr.lss"
  2811. '%INCLUDE "lsxbeerr.lss"
  2812. Const MAXARCHIVEITEMS = 50
  2813. Dim session As NotesSession
  2814. Dim dbSource As NotesDatabase
  2815. Dim dbArchive As NotesDatabase
  2816. Dim docSource As NotesDocument
  2817. Dim docArchive As NotesDocument
  2818. Dim docLog As NotesDocument
  2819. Dim docProfile As NotesDocument
  2820. Dim viewArchive As NotesView
  2821. Dim dtNow As NotesDateTime
  2822. Dim dtExpired As NotesDateTime
  2823. Dim dtDocument As NotesDateTime
  2824. Dim dtCompare As NotesDateTime
  2825. Dim docsCollection As NotesDocumentCollection
  2826. Dim rtitem As NotesRichTextItem
  2827. Dim item As NotesItem
  2828. Dim nidArray() As String
  2829. Dim SourcePath As String
  2830. Dim SourceServer As String
  2831. Dim ArchiveServer As String
  2832. Dim ArchivePath As String
  2833. Dim ArchiveLog As String
  2834. Dim IncludeDocLinks As String
  2835. Dim ArchiveExpired As String
  2836. Dim ArchiveInactive As String
  2837. Dim ExpiredLife As Integer
  2838. Dim DocumentLife As Integer
  2839. Dim nLogItems As Integer
  2840. Dim numDocs As Integer
  2841. Dim numDocsArchived As Integer
  2842. Dim i As Integer
  2843. Dim DoNotRun As Variant
  2844. Dim DocCanBeArchived As Variant
  2845. '++LotusScript Development Environment:2:2:Initialize:1:10
  2846. Sub Initialize
  2847.      'initialize some variables
  2848.      Set session = New NotesSession
  2849.      Set dbSource = session.CurrentDatabase
  2850.      Redim nidArray(5)
  2851.      nLogItems = 0
  2852.      numDocsArchived = 0
  2853.      'call the main entry point
  2854.      Main     
  2855. End Sub
  2856. '++LotusScript Development Environment:2:2:Terminate:1:10
  2857. Sub Terminate
  2858.      
  2859. End Sub
  2860. '++LotusScript Development Environment:2:2:Main:1:8
  2861. Sub Main
  2862. 'Read the profile document to see what options are enabled and where databases are located
  2863.      GetProfileSettings
  2864.      If DoNotRun Then Exit Sub
  2865.      
  2866. 'setup the date/time structures
  2867.      Set dtNow = New NotesDateTime("")
  2868.      Set dtExpired = New NotesDateTime("")
  2869.      Set dtDocument = New NotesDateTime("")
  2870.      Set dtCompare = New NotesDateTime("")
  2871.      dtNow.SetNow
  2872.      dtExpired.SetNow
  2873.      dtDocument.SetNow
  2874.      dtCompare.SetNow
  2875.      If ArchiveExpired = "Yes" Then dtExpired.AdjustDay(ExpiredLife * -1)
  2876.      If ArchiveInactive = "Yes" Then dtDocument.AdjustDay(DocumentLife * -1)     
  2877.      
  2878. 'open the archive database
  2879.      Set dbArchive = New NotesDatabase(ArchiveServer,ArchivePath)
  2880.      If Not (dbArchive.IsOpen) Then
  2881.           Messagebox "Unable to open archive database.",16,"Error"
  2882.           Exit Sub
  2883.      End If
  2884.      
  2885.      'see if we are logging documents, if we are, then create the first one
  2886.      If ArchiveLog = "Yes" Then CreateLogDocument
  2887.      'process the documents in the database
  2888.      'this finds all documents that needs to be archived, archives them, logs them (if necessary), and removes them from this database
  2889.      ProcessDocuments
  2890.      'mark the log documents in terms of x out of y
  2891.      If ArchiveLog = "Yes" Then MarkLogDocuments
  2892. End Sub
  2893. '++LotusScript Development Environment:2:2:GetProfileSettings:1:8
  2894. Sub GetProfileSettings
  2895.      'reads the profile document
  2896.      Set view = dbSource.GetView("Archiving")
  2897.      key = "Archive Profile"
  2898.      Set docProfile = view.GetDocumentByKey(key,False)
  2899.      If docProfile Is Nothing Then
  2900.           'there is no profile document so exit
  2901.           DoNotRun = True
  2902.      Elseif docProfile.ArchivePath(0) = "" Then
  2903.           'there is no archive database
  2904.           Msgbox "You need to specify a location for the archive database.",16,"Error"          
  2905.           DoNotRun = True
  2906.      Else
  2907.           DoNotRun = False
  2908.           ArchiveExpired = docProfile.ArchiveExpired(0)
  2909.           ArchiveInactive = docProfile.ArchiveInactive(0)
  2910.           DocumentLife = docProfile.DocumentLife(0)
  2911.           ExpiredLife = docProfile.ExpiredLife(0)
  2912.           ArchiveServer = docProfile.ArchiveServer(0)
  2913.           ArchivePath = docProfile.ArchivePath(0)
  2914.           ArchiveLog = docProfile.ArchiveLog(0)
  2915.           IncludeDocLinks = docProfile.IncludeDocLinks(0)
  2916.      End If
  2917. End Sub
  2918. '++LotusScript Development Environment:2:2:CreateLogDocument:1:8
  2919. Sub CreateLogDocument
  2920.      'creates a new log document, incrementing the counter
  2921.      Set docLog = New NotesDocument(dbSource)
  2922.      Set rtitem = New NotesRichTextItem(docLog, "Body")
  2923.      docLog.Form = "Archive Log"
  2924.      dtNow.SetNow
  2925.      docLog.ArchiveDate = dtNow.LSLocalTime
  2926.      docLog.ProtectFromArchive = 1
  2927.      docLog.ExcludeFromView = "D"
  2928.      docLog.From = "Archiving"
  2929.      docLog.Categories = "(Archive)"
  2930.      docLog.ReplaceItemValue "_ViewIcon", 22
  2931.      nLogItems = nLogItems + 1
  2932.      'see if we need to redim the array
  2933.      If nLogItems Mod 6 = 0 Then Redim Preserve nidArray(nLogItems + 4)     
  2934. End Sub
  2935. '++LotusScript Development Environment:2:2:ProcessDocuments:1:8
  2936. Sub ProcessDocuments
  2937.      'get a handle to all of the documents in the database
  2938.      Set docsCollection = dbSource.AllDocuments
  2939.      numDocs = docsCollection.Count
  2940.      For i =1 To numDocs
  2941.           Set docSource = docsCollection.GetNthDocument(i)
  2942.           'see if this document can be archived
  2943.           EvaluateDocument
  2944.           If DocCanBeArchived Then
  2945.                'archive this document
  2946.                ArchiveDocument
  2947.                If ArchiveLog = "Yes" Then AddDocumentToLog
  2948.                docSource.Remove True
  2949.           End If
  2950.           'see if we have hit the maximum number of entries in a log document; if so close the existing one and create a new one
  2951.           If (numDocsArchived Mod MAXARCHIVEITEMS = 0) And (numDocsArchived > 0) Then 
  2952.                If ArchiveLog = "Yes" Then
  2953.                     CloseLogDocument
  2954.                     CreateLogDocument                  
  2955.                End If
  2956.           End If               
  2957.      Next
  2958.      'we are done processing all of the documents, close the last log document (if necessary)
  2959.      If ArchiveLog = "Yes" Then CloseLogDocument
  2960. End Sub
  2961. '++LotusScript Development Environment:2:2:EvaluateDocument:1:8
  2962. Sub EvaluateDocument
  2963.      'checks to see if a document should be archived or not
  2964.      DocCanBeArchived = False
  2965.      'see if this document is protected from archiving
  2966.      If docSource.HasItem("ProtectFromArchive") Then
  2967.           If docSource.ProtectFromArchive(0) = 1 Then Exit Sub        
  2968.      End If
  2969.      
  2970. 'look for a $NoPurge item; if it is a date, compare it to today;
  2971.      If (docSource.HasItem("$NoPurge")) Then
  2972.           Set Purge = docSource.GetFirstItem("$NoPurge")
  2973.           If (Purge.Type = DATETIMES) Then
  2974.                Set enddt = New NotesDateTime("")
  2975.                Set enddt = Purge.DateTimeValue
  2976.                Set nowdt = New NotesDateTime("")
  2977.                nowdt.SetNow
  2978.                If enddt.TimeDifference(nowdt) >= 0 Then Exit Sub
  2979.           Else
  2980.                Exit Sub
  2981.           End If
  2982.      End If
  2983.      
  2984.      'see if we should archive documents that expire
  2985.      If ArchiveExpired = "Yes" Then
  2986.           If docSource.HasItem("ExpireDate") Then
  2987.                Set item = docSource.GetFirstItem("ExpireDate")
  2988.                Set dtCompare = item.DateTimeValue
  2989.                If dtCompare Is Nothing Then
  2990.                     Set dtCompare = New NotesDateTime("")
  2991.                     dtCompare.SetNow
  2992.                Else
  2993.                     If dtExpired.TimeDifference(dtCompare) >= 0 Then
  2994.                          DocCanBeArchived = True
  2995.                          Exit Sub ' we exit here so that we don't archive this document again
  2996.                     End If
  2997.                End If                    
  2998.           End If
  2999.      End If
  3000.      'see if we should archive documents that are inactive
  3001.      If ArchiveInactive = "Yes" Then
  3002.           dtCompare.LSLocalTime = docSource.LastAccessed
  3003.           If dtDocument.TimeDifference(dtCompare) >= 0 Then DocCanBeArchived = True
  3004.      End If
  3005. End Sub
  3006. '++LotusScript Development Environment:2:2:ArchiveDocument:1:8
  3007. Sub ArchiveDocument
  3008.      'copies the source document into the archive database
  3009. $Archived and DateArchived might already be present, if this agent failed the last
  3010. time it was run.  None of these fields should be on the archived copy, because we 
  3011. don't want the archive database to inadvertantly archive these documents (it can
  3012. archive, but it needs to use its own criteria)
  3013. %END REM
  3014.      
  3015.      If docSource.HasItem("$Archived") Then docSource.RemoveItem("$Archived")
  3016.      If docSource.HasItem("DateArchived") Then docSource.RemoveItem("DateArchived")
  3017.      If docSource.HasItem("ExpireDate") Then docSource.RemoveItem("ExpireDate")
  3018.      FixReaderNames
  3019.      docSource.Save True, True
  3020.      Set docArchive = docSource.CopyToDatabase(dbArchive)
  3021.      docSource.DateArchived = dtNow.LSLocalTime    
  3022.      Call docSource.AppendItemValue("$Archived", True)
  3023.      docSource.Save True, True
  3024.      numDocsArchived = numDocsArchived + 1
  3025. End Sub
  3026. '++LotusScript Development Environment:2:2:FixReaderNames:1:8
  3027. Sub FixReaderNames
  3028.      'if the reader access fields are blank, remove them
  3029.      If docSource.HasItem("Readers") Then
  3030.           If docSource.Readers(0) = "" Then docSource.RemoveItem("Readers")
  3031.      End If
  3032.      If docSource.HasItem("DocumentReaders") Then
  3033.           If docSource.DocumentReaders(0) = "" Then docSource.RemoveItem("DocumentReaders")
  3034.      End If
  3035.      
  3036. End Sub
  3037. '++LotusScript Development Environment:2:2:AddDocumentToLog:1:8
  3038. Sub AddDocumentToLog
  3039.      'only called if a document was archived and logging was enabled
  3040.      If IncludeDocLinks = "Yes" Then
  3041.           'the user wants a doclink to the new archived document
  3042.           Call rtitem.AppendDocLink(docArchive, "DocLink to " & docSource.Subject(0))
  3043.           Call rtitem.AddTab(1)
  3044.      End If
  3045.      Call rtitem.AppendText("     " & docSource.Subject(0) & " (created by " & docSource.From(0) &   " on " &_
  3046.      Format(docSource.Created, "Short Date") & ")")
  3047.      Call rtitem.AddNewLine(2)
  3048. End Sub
  3049. '++LotusScript Development Environment:2:2:CloseLogDocument:1:8
  3050. Sub CloseLogDocument
  3051.      'saves the log document, adds the note id to the array,
  3052.      docLog.Save True, True
  3053.      nidArray(nLogItems) = docLog.NoteID
  3054. End Sub
  3055. '++LotusScript Development Environment:2:2:MarkLogDocuments:1:8
  3056. Sub MarkLogDocuments
  3057.      'finds all of the log documents just created and marks them in terms of x out of y
  3058.      For i = 1 To nLogItems
  3059.           Set docLog = dbSource.GetDocumentByID(nidArray(i))
  3060.           If Not (docLog Is Nothing) Then
  3061.                docLog.Subject = "Log Document " &Cstr(i) & " of " & Cstr(nLogItems) & " (" & Format(docLog.Created, "General Date") & ")"
  3062.                docLog.LogCount = Cstr(i)
  3063.                docLog.LogTotal = Cstr(nLogItems)
  3064.                docLog.ArchiveTrailer = "Archive log " & Cstr(i) & "of " & Cstr(nLogItems) & " for documents on server " & _
  3065.                ArchiveServer & " from " & dbSource.Title & " (" & dbSource.FilePath & ") to " & dbArchive.Title & _
  3066.                " (" & ArchivePath & ") completed sucessfully on " & _
  3067.                Format(dtNow.LSLocalTime, "Short Date") & " at " & _
  3068.                Format(dtNow.LSLocalTime, "Long Time") & _
  3069.                ".  Expired documents are archived after " & ExpiredLife & _
  3070.                " days.  All other documents are archived after " & DocumentLife & " days of inactivity."
  3071.                docLog.Save True,True
  3072.                Call docLog.CopyToDatabase(dbArchive)
  3073.           End If
  3074.      Next
  3075. End Sub
  3076. O=Lotus Notes
  3077. O=Lotus Notes
  3078. PURSAFO
  3079. |.:#U
  3080. O=Lotus Notes
  3081. CN=Lotus Notes Template Development/O=Lotus Notes
  3082. PURSAFO
  3083. Fde!f^^
  3084. $TITLE
  3085. $AssistType
  3086. $AssistLastRun
  3087. $AssistDocCount
  3088. $AssistFlags
  3089. $AssistTrigger
  3090. $AssistInfo
  3091. $AssistQuery
  3092. $AssistAction
  3093. $AssistAction_Ex
  3094. Archive Profile
  3095. Times New Roman
  3096. '++LotusScript Development Environment:2:5:(Options):0:66
  3097. Option Public
  3098. '++LotusScript Development Environment:2:5:(Forward):0:1
  3099. Declare Sub Initialize
  3100. Declare Sub ProcessExistingArchiveDB
  3101. Declare Sub ProcessNonExistingArchiveDB 
  3102. Declare Sub ProcessArchiveDbExists
  3103. Declare Sub CreateNewArchiveDB
  3104. '++LotusScript Development Environment:2:5:(Declarations):0:10
  3105. %INCLUDE "lsconst.lss"
  3106. Dim s As NotesSession
  3107. Dim w As NotesUIWorkspace
  3108. Dim db As NotesDatabase
  3109. Dim existingdb As NotesDatabase
  3110. Dim archivedb As NotesDatabase
  3111. Dim view As NotesView
  3112. Dim note As NotesDocument
  3113. Dim profile As NotesDocument
  3114. Dim archivedoc As NotesDocument
  3115. Dim doc As NotesUIDocument
  3116. Dim DocWasSaved As Integer
  3117. Dim DoNotClose As Variant
  3118. Dim ExistingServer As String
  3119. Dim ExistingPath As String
  3120. '++LotusScript Development Environment:2:2:Initialize:1:10
  3121. Sub Initialize
  3122.      
  3123. End Sub
  3124. '++LotusScript Development Environment:2:2:ProcessExistingArchiveDB:1:12
  3125. Sub ProcessExistingArchiveDB
  3126. an existing archive already exists and the user has choosen to create a new one
  3127. this function gets called on one of two occasions
  3128. either the document has a value in the tmpArchivePath field
  3129. or the user entered a server and path that has an existing database
  3130. we need to handle both cases
  3131. %END REM
  3132.      
  3133. End Sub
  3134. '++LotusScript Development Environment:2:2:ProcessNonExistingArchiveDB:1:8
  3135. Sub ProcessNonExistingArchiveDB 
  3136.      On Error Goto ProcessError         
  3137.      On Error 4005 Goto DbCreateError
  3138.      'render the dialog box to get the location of the archive database
  3139.      If (w.DialogBox("(ArchiveProfileDlg)",True,True,"Specify New Location")) Then
  3140.           'see if the archive database exists
  3141.           Set archivedb = New NotesDatabase(note.ArchiveServer(0),note.ArchivePath(0))
  3142.           If (archivedb.IsOpen) Then
  3143.                Msgbox "Database already exists. Enter a new location"
  3144.                ProcessNonExistingArchiveDB          
  3145.           Else
  3146.                Set archivedb = db.CreateCopy(note.ArchiveServer(0),note.ArchivePath(0))
  3147.                archivedb.Title = db.Title & " (Archive)"
  3148.           End If
  3149.           Call doc.Reload
  3150.           Call doc.Refresh
  3151.      Else
  3152.           note.ArchiveServer = ""
  3153.           note.ArchivePath = ""
  3154.      End If
  3155.      Exit Sub
  3156. DbCreateError:
  3157.      Select Case Msgbox("Error creating archive database. The server may be down or you don't have access to create new databases on the server. Click Yes to try a different location now or No to cancel.",36,"Error")
  3158.      Case 6
  3159.           ProcessNonExistingArchiveDb
  3160.      End Select
  3161.      Exit Sub        
  3162. ProcessError:
  3163.      Msgbox Error & " - (ProcessNonExistingArchiveDB)"
  3164.      Exit Sub
  3165. End Sub
  3166. '++LotusScript Development Environment:2:2:ProcessArchiveDbExists:1:8
  3167. Sub ProcessArchiveDbExists
  3168.      'this function gets called if a database already exists in the tmpArchiveServer field
  3169.      'render the dialog box to get the location of the archive database
  3170.      On Error 4005 Goto DbCreateError
  3171.      If (w.DialogBox("(ProcessExistingDbDlg)",True,True,"Specify New Location")) Then
  3172.           On Error Resume Next          
  3173.           'see if the archive database exists
  3174.           Set archivedb = New NotesDatabase(note.ArchiveServer(0),note.ArchivePath(0))
  3175.           If (archivedb.IsOpen) Then
  3176.                Msgbox "Database already exists. Enter a new location"
  3177.                ProcessArchiveDbExists          
  3178.           Else
  3179.                Call CreateNewArchiveDB
  3180.                archivedb.Title = db.Title & " (Archive)"
  3181.           End If
  3182.           Call doc.reload
  3183.           Call doc.refresh
  3184.      End If        
  3185.      Exit Sub
  3186. DbCreateError:
  3187.      Select Case Msgbox("Error creating archive database. The server may be down or you don't have access to create new databases on the server. Click Yes to try a different location now or No to cancel.",36,"Error")
  3188.      Case 6
  3189.           ProcessNonExistingArchiveDb
  3190.      End Select
  3191.      Exit Sub        
  3192. End Sub
  3193. '++LotusScript Development Environment:2:2:CreateNewArchiveDB:1:8
  3194. Sub CreateNewArchiveDB
  3195.      On Error 4005 Goto DbCreateError
  3196.      On Error Goto ProcessError
  3197.      
  3198. 'first, create the archive database     
  3199.      Set archivedb = db.CreateCopy(note.ArchiveServer(0),note.ArchivePath(0))
  3200.      
  3201. 'if the profile says to copy new documents, then copy them now
  3202.      If (note.CopyOptions(0) = "1") Then
  3203.           Set allDocs = existingdb.AllDocuments
  3204.           For i = 1 To allDocs.Count          
  3205.                Set archivedoc = allDocs.GetNthDocument(i)     
  3206.                Call archivedoc.CopyToDatabase(archivedb)
  3207.           Next
  3208.      End If
  3209.      
  3210. 'if the profile says we should delete the original archive database, then remove it
  3211.      If (note.DeleteOptions(0) = "1") Then Call existingdb.Remove
  3212.      
  3213.      Exit Sub
  3214. DbCreateError:
  3215.      Select Case Msgbox("Error creating archive database. The server may be down or you don't have access to create new databases on the server. Click Yes to try a different location now or No to cancel.",36,"Error")
  3216.      Case 6
  3217.           ProcessNonExistingArchiveDb
  3218.      End Select
  3219.      Exit Sub        
  3220. ProcessError:
  3221.      Msgbox Error & " - (ProcessNonExistingArchiveDB)"
  3222.      Exit Sub
  3223. End Sub
  3224.  Archive Profile'++LotusScript Development Environment:2:5:(Options):0:66
  3225. '++LotusScript Development Environment:2:5:(Forward):0:1
  3226. Declare Sub Queryclose(Source As Notesuidocument, Continue As Variant)
  3227. Declare Sub Querysave(Source As Notesuidocument, Continue As Variant)
  3228. Declare Sub Postopen(Source As Notesuidocument)
  3229. '++LotusScript Development Environment:2:5:(Declarations):0:2
  3230. '++LotusScript Development Environment:2:2:BindEvents:1:129
  3231. Private Sub BindEvents(Byval Objectname_ As String)
  3232.      Static Source As NOTESUIDOCUMENT
  3233.      Set Source = Bind(Objectname_)
  3234.      On Event Queryclose From Source Call Queryclose
  3235.      On Event Querysave From Source Call Querysave
  3236.      On Event Postopen From Source Call Postopen
  3237. End Sub
  3238. '++LotusScript Development Environment:2:2:Queryclose:1:12
  3239. Sub Queryclose(Source As Notesuidocument, Continue As Variant)
  3240.      
  3241.      If (DocWasSaved = False) Or (profile Is Nothing) Or DoNotClose Then Exit Sub
  3242.      
  3243.      ItemList = profile.Items
  3244.      Forall n In ItemList
  3245.           profile.RemoveItem(n.Name)    
  3246.      End Forall
  3247.      note.CopyAllItems profile
  3248.      profile.SaveOptions = "1"
  3249.      profile.save True, True
  3250.      
  3251. End Sub
  3252. '++LotusScript Development Environment:2:2:Querysave:1:12
  3253. Sub Querysave(Source As Notesuidocument, Continue As Variant)
  3254.      
  3255.      DocWasSaved = True
  3256.      DoNotClose = False     
  3257.      If Not(profile Is Nothing) Then note.SaveOptions = "0"
  3258.      If (note.ArchivePath(0) = "") Then Msgbox "You will need to specify a location of the archive database before you can archive documents.",16     
  3259.      source.Reload
  3260.      source.RefreshHideFormulas  
  3261. End Sub
  3262. '++LotusScript Development Environment:2:2:Postopen:1:12
  3263. Sub Postopen(Source As Notesuidocument)
  3264.      'initialize global variables
  3265.      Set note = source.Document
  3266.      Set w = New NotesUIWorkspace
  3267.      Set s = New NotesSession
  3268.      Set db = s.CurrentDatabase
  3269.      Set view = db.GetView("Archiving")
  3270.      Set doc = source
  3271.      'turn off auto reload to make processing faster
  3272.      source.AutoReload = False
  3273.      'if this is not a new doc, we don't need to continue
  3274.      If Not (source.IsNewDoc) Then Exit Sub
  3275.      'get the existing profile
  3276.      key = "Archive Profile"
  3277.      Set profile = view.GetDocumentByKey(key,False)
  3278.      If profile Is Nothing Then
  3279.           'an existing profile was not found
  3280.           note.ProtectFromArchive = 1
  3281.           note.ExcludeFromView = "D"
  3282.           note.From = "Archiving"
  3283.           note.Subject = "Archive Profile"
  3284.           note.Categories = "(Archive)"
  3285.           Call note.ReplaceItemValue("_ViewIcon", 11)
  3286.           source.reload
  3287.      Else
  3288.           'copy the profile fields to this document
  3289.           ItemList = note.Items
  3290.           Forall n In ItemList
  3291.                note.RemoveItem(n.Name)    
  3292.           End Forall
  3293.           profile.CopyAllItems note
  3294.           source.Reload
  3295.           If source.EditMode Then source.Refresh
  3296.      End If
  3297.      
  3298.      DocWasSaved = False
  3299.      
  3300. End Sub
  3301. K     ,`
  3302. Archive Profile 
  3303. ArchiveExpired
  3304. Archive Expired documents | Yes
  3305.     after
  3306. ExpiredLife
  3307. Number cannot be negative.{
  3308.     3S4S6S11SExpiredLife
  3309.     days
  3310. ArchiveInactive
  3311. Archive documents which have no activity | Yes
  3312.     after
  3313. DocumentLife
  3314. Number cannot be negative.{
  3315.     3S4S6S11SDocumentLife
  3316.     days
  3317. ArchiveLog
  3318. Generate an Archive Log each time an archive occurs | Yes
  3319. IncludeDoclinks
  3320. Include document links | Yes
  3321.     Archive Profile editors:
  3322. ProfileEditors
  3323.     Archive Server:
  3324. ArchivePath
  3325. ArchiveServer
  3326. Local
  3327. ArchiveServer
  3328.     3S4S9S10S12S14StmpArchiveServer
  3329.     Archive Path:
  3330. ArchivePath
  3331. tmpArchivePath
  3332. Categori_zeK
  3333. _Edit Document
  3334. Send Docu_ment
  3335. _Forward
  3336. Close
  3337.     0S0E
  3338. Save Profile 
  3339.     0S0E
  3340. Specify Archive Location'++LotusScript Development Environment:2:5:(Options):0:66
  3341. '++LotusScript Development Environment:2:5:(Forward):0:1
  3342. Declare Sub Click(Source As Button)
  3343. '++LotusScript Development Environment:2:5:(Declarations):0:2
  3344. '++LotusScript Development Environment:2:2:BindEvents:1:129
  3345. Private Sub BindEvents(Byval Objectname_ As String)
  3346.      Static Source As BUTTON
  3347.      Set Source = Bind(Objectname_)
  3348.      On Event Click From Source Call Click
  3349. End Sub
  3350. '++LotusScript Development Environment:2:2:Click:1:12
  3351. Sub Click(Source As Button)
  3352.      
  3353. 'see if an archive database already exists based upon some field values
  3354.      If (Len(note.tmpArchivePath(0)) >0) Then
  3355.           If (note.tmpArchiveServer(0) = "Local") Then
  3356.                Fullpath$ = note.tmpArchivePath(0)
  3357.                ExistingServer = ""
  3358.           Else
  3359.                Fullpath$ = note.tmpArchiveServer(0) + "!!" + note.tmpArchivePath(0)
  3360.                ExistingServer = note.tmpArchiveServer(0)
  3361.           End If
  3362.           ExistingPath = note.tmpArchivePath(0)
  3363.           Set existingdb = New NotesDatabase(ExistingServer,ExistingPath)
  3364.           If (existingdb.IsOpen) Then
  3365.                Select Case Msgbox("The database (" + Fullpath$ + ") already exists. To create a new database, select OK, otherwise click Cancel",33,"Database already exists")
  3366.                Case IDOK: ProcessArchiveDBExists
  3367.                End Select
  3368.           Else
  3369.                ProcessNonExistingArchiveDB
  3370.           End If
  3371.      Else
  3372.           ProcessNonExistingArchiveDB
  3373.      End If
  3374. End Sub
  3375. InstructionsF
  3376. (ArchiveInstructions)
  3377.     2S4S
  3378. _Move to Folder...    
  3379. _Remove from FolderK
  3380. O=Lotus Notes
  3381. O=Lotus Notes
  3382. PURSAFO
  3383. |.:#U
  3384. O=Lotus Notes
  3385. CN=Lotus Notes Template Development/O=Lotus Notes
  3386. PURSAFO
  3387. Fde!f^^
  3388. 2&g=/
  3389. DocLife
  3390. ArchiveDate
  3391. ObsoleteLife
  3392. $ManualArchivers_O
  3393. $TITLE
  3394. $Info
  3395. $WindowTitle
  3396. $Script
  3397. $$Script_O
  3398. $$ScriptName
  3399. $$FormScript
  3400. $$$FormScript_O
  3401. ExpiredLife
  3402. DocumentLife
  3403. $Body
  3404. $ACTIONS
  3405. $SCRIPTOBJ_6
  3406. Archive Log
  3407. Times New Roman
  3408.  ArchiveLog
  3409. $MessageType
  3410. %12-/H
  3411. !G,$W,#I4)X6(H,4W,4G98X<6h*#x+$g9)w8(h.6u-2g<5w<4>B=YA
  3412. WC9iB.xC-iF8wH8jT>zR<rd?
  3413. 2L3;FK=Dj=C:FQ8Qp<b
  3414. GEHXHGLQLZSKEKUVKSGRYYWWgJEvIEiTHyWFfLRwKSgYWwZV[cXtfYPZjl\dWfphhhvigkqlysjhktvlsjtxyww
  3415. Archive Log 
  3416. LogCount
  3417. LogTotal
  3418.  for 
  3419. ArchiveDate
  3420. ArchiveTrailer
  3421. ArchiveTrailer
  3422.     Hidden:  
  3423. Archive Log for 
  3424. ArchiveDate
  3425.     1S2S
  3426. Subject
  3427. (Archive)
  3428. Categories
  3429. Close
  3430.     0S0E
  3431. Categori_ze
  3432. _Edit Document
  3433. Send Docu_ment
  3434. _Forward
  3435. _Move to Folder...
  3436. _Remove from Folder
  3437. O=Lotus Notes
  3438. O=Lotus Notes
  3439. PURSAFO
  3440. |.:#U
  3441. O=Lotus Notes
  3442. CN=Lotus Notes Template Development/O=Lotus Notes
  3443. PURSAFO
  3444. Fde!f^^
  3445. DocLife
  3446. $ManualArchivers_O
  3447. ObsoleteLife
  3448. DocumentLife
  3449. $TITLE
  3450. $Info
  3451. $WindowTitle
  3452. $$Script_O
  3453. $$ScriptName
  3454. ArchiveDate
  3455. $Body
  3456. $ACTIONS
  3457. _Forward
  3458. Categori_zeK
  3459. Edit Document
  3460. _Move to Folder...
  3461. _Remove from Folder...
  3462. Setup Archive...L
  3463. ArchiveProfile
  3464. Server
  3465.     1S2S6S
  3466.     0R1S2S6S
  3467. Server
  3468.     0R7S8S11S13S14S15S16S
  3469. Archive NowK
  3470. Archive Profile
  3471.     1S2S
  3472. AllDocs
  3473. NoCache
  3474. ($Profiles)
  3475. ArchivePath
  3476.     0R1S2S8S10S12S14S
  3477. AllDocs
  3478. Error
  3479. You must specify a location for the archive database
  3480.     0R3S4S5S6S14S15S
  3481. AllDocs2
  3482. NoCache
  3483. ($Profiles)
  3484. ArchivePath
  3485. Archive Now
  3486. Before you can begin archiving documents you need to fill out an Archive Profile.  Please press "Setup Archive...".
  3487.     0RR1S2S12S14S16S18S28S30S34S
  3488. Archiving
  3489. Are you sure you want to move documents to the archive database now?
  3490.     0R6S8S11S13S
  3491. AlreadyArchived
  3492. MailArchived|
  3493. Archiving
  3494. Since this is the first time you have requested an archive, it may take several minutes.  Do you want to proceed?
  3495. Archiving
  3496. No documents were archived
  3497.     0RR1S2S8S9S11S13S19S21S24S26S32S34S
  3498. MailArchived
  3499.     0RR1S2S3S
  3500. Periodic Archive
  3501.     0R4S
  3502. Server
  3503.     1S2S6S
  3504.     0R1S2S6S
  3505. Server
  3506.     0R7S8S11S13S14S15S16S
  3507. Enable Scheduled Archivingf
  3508. AllDocs
  3509. Archiving
  3510. Archive Profile
  3511. Archive Now
  3512. Before you can begin archiving documents you need to fill out an Archive Profile.  Please press "Setup Archive...".
  3513.     1S2S10S12S14S16S20S26S28S32S
  3514. Periodic Archive
  3515.     0RR4S
  3516. Server
  3517.     1S2S6S
  3518.     0R1S2S6S
  3519. Periodic Archive
  3520. Server
  3521.     0R4S5R12S13S16S18S19S20S21S
  3522. Disable Scheduled ArchivingKf
  3523. AllDocs
  3524. Archiving
  3525. Archive Profile
  3526. Archive Now
  3527. Before you can begin archiving documents you need to fill out an Archive Profile.  Please press "Setup Archive...".
  3528.     1S2S10S12S14S16S20S26S28S32S
  3529. Periodic Archive
  3530.     0RR4S
  3531. Server
  3532.     1S2S6S
  3533.     0R1S2S6S
  3534. Periodic Archive
  3535. Server
  3536.     0R7S8R15S16S19S21S22S23S24S
  3537. Open Archive Db...'++LotusScript Development Environment:2:5:(Options):0:66
  3538. '++LotusScript Development Environment:2:5:(Forward):0:1
  3539. Declare Sub Click(Source As Button)
  3540. '++LotusScript Development Environment:2:5:(Declarations):0:10
  3541. Dim s As NotesSession
  3542. Dim w As NotesUIWorkspace
  3543. Dim sourcedb As NotesDatabase
  3544. Dim view As NotesView
  3545. Dim profile As NotesDocument
  3546. Dim server As String
  3547. '++LotusScript Development Environment:2:2:BindEvents:1:129
  3548. Private Sub BindEvents(Byval Objectname_ As String)
  3549.      Static Source As BUTTON
  3550.      Set Source = Bind(Objectname_)
  3551.      On Event Click From Source Call Click
  3552. End Sub
  3553. '++LotusScript Development Environment:2:2:Click:1:12
  3554. Sub Click(Source As Button)
  3555.      
  3556.      On Error Goto ErrorRoutine
  3557. '91 is Object Variable Not Set     
  3558.      On Error 91 Resume Next 
  3559. '4412 is the notes database does not exist     
  3560.      On Error 4412 Goto DatabaseNotExistError
  3561.      
  3562.      Set s = New NotesSession
  3563.      Set sourcedb = s.CurrentDatabase
  3564.      Set view = sourcedb.GetView("($Profiles)")
  3565.      key = "Archive Profile"
  3566.      Set profile = view.GetDocumentByKey(key)
  3567.      
  3568.      If profile Is Nothing Then
  3569.           Messagebox "There is no Archive Db for this database.", 0 + 64, "Archive"
  3570.           Exit Sub
  3571.      End If
  3572.      
  3573.      ArchivePath = profile.ArchivePath
  3574.      ArchiveServer = profile.ArchiveServer
  3575.      If (ArchivePath(0) = "") Then
  3576.           Messagebox "The archive database cannot be found. Click on the Setup Archive button to create a new archive database.",16,"Database not found"
  3577.           Exit Sub              
  3578.      End If
  3579.      
  3580.      Set w = New NotesUIWorkspace
  3581.      
  3582.      Call w.OpenDatabase(ArchiveServer(0), ArchivePath(0), "", "", "1")
  3583.      
  3584.      Exit Sub
  3585.      
  3586. ErrorRoutine:
  3587.      Messagebox "Unexpected condition: " & Err & " - " & Error
  3588.      Exit Sub
  3589. DatabaseNotExistError:
  3590.      Messagebox "The archive database cannot be found. Click on the Setup Archive button to create a new archive database.",16,"Database not found"
  3591.      Exit Sub     
  3592. End Sub
  3593. O=Lotus Notes
  3594. O=Lotus Notes
  3595. PURSAFO
  3596. |.:#U
  3597. O=Lotus Notes
  3598. CN=Lotus Notes Template Development/O=Lotus Notes
  3599. PURSAFO
  3600. Fde!f^^
  3601. 6&C^]{
  3602. $TITLE
  3603. $Index
  3604. $Formula
  3605. $FormulaClass
  3606. $VIEWFORMAT
  3607. $Comment
  3608. $ACTIONS
  3609. $SCRIPTOBJ_10
  3610. $ViewGlobalScript_O
  3611. Locked
  3612.     1S2S3S
  3613. DocumentAuthors
  3614. CurrentReviewers
  3615.     0R1S2S3S8S9S11S13S
  3616.     0S0E
  3617. O=Lotus Notes
  3618. O=Lotus Notes
  3619. PURSAFO
  3620. |.:#U
  3621. O=Lotus Notes
  3622. CN=Lotus Notes Template Development/O=Lotus Notes
  3623. PURSAFO
  3624. Fde!f^^
  3625. $TITLE
  3626. $Comment
  3627. $Formula
  3628. $TYPE
  3629. $Operation
  3630. $Scan
  3631. ed$UpdatedBy$ACLDigest$Signature$DesignVersion$Version$Formula$FormulaClass$Collation$TemplateModTime$TemplateServerName$TemplateFileName$Flags$FlagsNoRefreshIconBitmap$TITLE$Info$SubForms$WindowTitle$Fonts$Script$$Script_O$$ScriptName$$Reviewers$Reviewers_ODocumentAuthorsDocumentReadersLastEditorSubjectFromDateTimeCreatedCategoriesPreviousReviewersCURRENTREVIEWERSFutureReviewersReviewersReviewStyleReviewWindowReviewTimeNotifyAfterBodyReviewerLog$Body$ACTIONS$Class$$XMB$$XMB_2$$XMB_3$LicenseeOriginalSubjectImmediateParentSubject$TYPE$Index$Collation1$Collation2$VIEWFORMAT$Comment$Collation3$Collation4$Name$FolderObject$FolderIDTable$ViewMapDataset$ViewMapLayoutReviewTime_1SaveChoices$$FormScript$$$FormScript_O$AUTOLAUNCH_ViewIcon$AssistType$AssistLastRun$AssistDocCount$AssistFlags$AssistTrigger$AssistInfo$AssistQuery$AssistAction$AssistAction_Ex$AssistRunInfo$AssistVersion$LeftToDoDocLifeArchiveDateObsoleteLife$ManualArchivers_OArchiveExpiredExpiredLifeArchiveInactiveDocumentLifeArchiveLogIncludeDoclinksProfileEditors$SCRIPTOBJ_6$MessageTypeLogCountLogTotalArchiveTrailer$SCRIPTOBJ_10$ViewGlobalScript_O$Operation$ScanArchiveLocationArchiveServerArchivePathDeleteOptionsCopyOptions
  3632. (ArchiveProfileDlg)
  3633. Local
  3634. ArchiveLocation
  3635. Locally | LocalOn Server | Server
  3636. ArchiveLocation
  3637. Local
  3638.     1S2S
  3639.     0S0E
  3640. ArchiveServer
  3641. ArchiveLocation
  3642. Local
  3643. ArchiveServer
  3644. ArchiveServer
  3645.     4RS4E6R7S8S10RS4E12R13S14S16RS4E20S23R
  3646. ArchiveServer
  3647. CurrentPath
  3648.     1S2S6S
  3649. CurrentFile
  3650. CurrentPath
  3651.     0R1S2S6S
  3652. FileOnly
  3653. CurrentPath
  3654. CurrentFile
  3655. Macintosh
  3656. CurrentPath
  3657. CurrentFile
  3658. CurrentPath
  3659. CurrentFile
  3660. CurrentFile
  3661.     0R1S2S8S11S15S19S20S21S22S26S29S33S36S37S38S39S40S44S47S51S54S
  3662. DirOnly
  3663. CurrentPath
  3664. Macintosh
  3665. CurrentFile
  3666. CurrentFile
  3667. CurrentFile
  3668. Macintosh
  3669. CurrentPath
  3670. CurrentFile
  3671. CurrentPath
  3672. CurrentFile
  3673.     0R1S2S8S11S14S15S16S21S23S2E24S27S28S34S36S37S39S43S45S46S49S50S51S52S53S57S60S64S66S67S69S70S71S72S73S77S80S84S86S87S89S
  3674. dftvalue
  3675. DirOnly
  3676. FileOnly"
  3677. CurrentPath
  3678.     0RR1S2S3S4S7S8S10S12S13S17S
  3679. Macintosh
  3680. dftvalue
  3681. dftvalue
  3682. dftvalue
  3683. dftvalue
  3684. dftvalue
  3685.     0R3S4S5S6S21S22S23S24S25S26S
  3686. ArchivePath
  3687. Please specify the filename of the archive database
  3688.     3S4S6S11SArchivePath
  3689.     Documents are archived:
  3690.     Archive database is on server:
  3691.     Archive file:
  3692. servers
  3693. names.nsf
  3694. ($ServersLookup)
  3695.     1S2S
  3696. selectedserver
  3697. Server
  3698. Please select a server to create your archive database on.
  3699. ArchiveServer
  3700. servers
  3701.     0R1S2S
  3702. ArchiveServer
  3703. selectedServer
  3704.     0R1S2S3S
  3705. ?_?__
  3706. `!b`1
  3707. 7`^///?
  3708. ?b___
  3709. `bOOO
  3710. `<b!R
  3711. @If(@IsN
  3712. O=Lotus Notes
  3713. O=Lotus Notes
  3714. PURSAFO
  3715. |.:#U
  3716. O=Lotus Notes
  3717. CN=Lotus Notes Template Development/O=Lotus Notes
  3718. PURSAFO
  3719. Fde!f^^
  3720. $TITLE
  3721. $Info
  3722. $$ScriptName
  3723. $Body
  3724. (ProcessExistingDbDlg)StdR4DocLibDC
  3725. CN=Ryan Jansen/O=IrisCN=Lotus Notes Template Development/O=Lotus Notes#######
  3726. ($Profiles)|($Profiles)
  3727. PersonName"
  3728.     1S2S
  3729. $70PersonName$Conflict
  3730. Profile
  3731.     L1S5S1!
  3732. $70PersonName
  3733. $70Type2
  3734. PersonName"
  3735.     1S2S
  3736. PersonNamePerson Name&
  3737. Lotus NotesCN=Ryan Jansen/O=IrisCN=Lotus Notes Template Development/O=Lotus NotesStdR4DocLibY############################
  3738. (ArchiveInstructions)(ArchiveInstructions)
  3739. CN=Ryan Jansen/O=IrisCN=Lotus Notes Template Development/O=Lotus NotesStdR4DocLibC########################################
  3740. ##########################################################
  3741. ##########################################################
  3742. ##########################################################
  3743. ##########################################################
  3744. ##########################################################
  3745. ##########################################################
  3746. ##########################################################
  3747. ##########################################################
  3748. ##########################################################
  3749. ##########################################################
  3750. ##########################################################
  3751. ##########################################################
  3752. ##########################################################
  3753. ##########################################################
  3754. ##########################################################
  3755. ##########################################################
  3756. ##########################################################
  3757. ##########################################################
  3758. ##########################################################
  3759. ##########################################################
  3760. ##########################################################
  3761. ##########################################################
  3762. ##########################################################
  3763. ##########################################################
  3764. ##########################################################
  3765. ##########################################################
  3766. ##########################################################
  3767. ##########################################################
  3768. ##########################################################
  3769. ##########################################################
  3770. ##########################################################
  3771. ##########################################################
  3772. ##########################################################
  3773. ##########################################################
  3774. ##########################################################
  3775. ##########################################################
  3776. ##########################################################
  3777. ##########################################################
  3778. ##########################################################
  3779. ##########################################################
  3780. ##########################################################
  3781. (ProcessExistingDbDlg)'++LotusScript Development Environment:2:5:(Options):0:66
  3782. '++LotusScript Development Environment:2:5:(Forward):0:1
  3783. Declare Sub Postopen(Source As Notesuidocument)
  3784. '++LotusScript Development Environment:2:5:(Declarations):0:2
  3785. '++LotusScript Development Environment:2:2:BindEvents:1:129
  3786. Private Sub BindEvents(Byval Objectname_ As String)
  3787.      Static Source As NOTESUIDOCUMENT
  3788.      Set Source = Bind(Objectname_)
  3789.      On Event Postopen From Source Call Postopen
  3790. End Sub
  3791. '++LotusScript Development Environment:2:2:Postopen:1:12
  3792. Sub Postopen(Source As Notesuidocument)
  3793.      source.RefreshHideFormulas
  3794. End Sub
  3795. DeleteOptions
  3796. Delete the original database|1
  3797.     Documents are archived:
  3798. ArchiveLocation
  3799. Local
  3800.     1S2S
  3801.     Archive database is on server:
  3802.     Archive file:
  3803. Local
  3804. ArchiveLocation
  3805. Locally | LocalOn Server | Server
  3806.     0S0E
  3807. ArchiveServer
  3808. ArchiveLocation
  3809. Local
  3810. ArchiveServer
  3811. ArchiveServer
  3812.     4RS4E6R7S8S10RS4E12R13S14S16RS4E20S23R
  3813. ArchiveServer
  3814. CurrentPath
  3815.     1S2S6S
  3816. CurrentFile
  3817. CurrentPath
  3818.     0R1S2S6S
  3819. FileOnly
  3820. CurrentPath
  3821. CurrentFile
  3822. Macintosh
  3823. CurrentPath
  3824. CurrentFile
  3825. CurrentPath
  3826. CurrentFile
  3827. CurrentFile
  3828.     0R1S2S8S11S15S18S19S20S21S22S26S29S33S36S37S38S39S40S44S47S51S54S
  3829. DirOnly
  3830. CurrentPath
  3831. CurrentFile
  3832. Macintosh
  3833. CurrentPath
  3834. CurrentFile
  3835. CurrentPath
  3836. CurrentFile
  3837.     0R1S2S8S11S15S17S18S20S21S22S23S24S28S31S35S37S38S40S41S42S43S44S48S51S55S57S58S60S
  3838. DirOnly
  3839. FileOnly"
  3840. CurrentPath
  3841.     0RR1S2S5S6S8S10S11S15S
  3842. ArchivePath
  3843. Please specify the filename of the archive database
  3844.     3S4S6S11SArchivePath
  3845.     After creating the new archive db:
  3846. servers
  3847. names.nsf
  3848. ($ServersLookup)
  3849.     1S2S
  3850. selectedserver
  3851. Server
  3852. Please select a server to create your archive database on.
  3853. ArchiveServer
  3854. servers
  3855.     0R1S2S
  3856. ArchiveServer
  3857. selectedServer
  3858.     0R1S2S3S
  3859. ?_?__
  3860. `!b`1
  3861. 7`^///?
  3862. ?b___
  3863. `bOOO
  3864. `<b!R
  3865. @If(@IsN
  3866. CopyOptions
  3867. Copy documents from the original archive to the new one|1
  3868. O=Lotus Notes
  3869. O=Lotus Notes
  3870. PURSAFO
  3871. |.:#U
  3872. O=Lotus Notes
  3873. CN=Lotus Notes Template Development/O=Lotus Notes
  3874. PURSAFO
  3875. Fde!f^^
  3876. $TITLE
  3877. $Info
  3878. $$Script_O
  3879. $$ScriptName
  3880. $$FormScript
  3881. $$$FormScript_O
  3882. $Body
  3883. Times New Roman
  3884.  (ArchiveInstructions)
  3885. Archive Profile Help
  3886. The Archive Profile allows you to specify which documents should
  3887. be removed from the current database and stored in an archive
  3888. database.  This allows you to keep your discussion up-to-date 
  3889. with only the latest topics.  
  3890. You can choose the following in your ArchiveProfile:
  3891.     Archive expired documents
  3892.         Choose this option if you wish to archive documents which have been 
  3893.         marked as expired. Indicate the number of days to wait before the expired
  3894.         documents are archived.
  3895.     Archive documents which have no activity
  3896.         Choose this option if you wish to archive documents which have had 
  3897.         no activity. Indicate the number of days to wait before the inactive documents 
  3898.         are archived.    
  3899.     Generate an Archive Log each time an archive occurs
  3900.         Choose this option if you wish to have an Archive Log created when documents 
  3901.         are archived.  You can also indicate if you would like document links to the 
  3902.         archived documents included in the Archive Log.
  3903.     Archive Profile Editors:
  3904.         Specify the names of those users that should be allowed to modify the Archive Profile.
  3905.     Specify Archive Location:
  3906.         Click on this button to specify the server and filename of the Archive database. The archive
  3907.         database is created for you based upon the values specified in the dialog box.
  3908. O=Lotus Notes
  3909. O=Lotus Notes
  3910. PURSAFO
  3911. |.:#U
  3912. O=Lotus Notes
  3913. CN=Lotus Notes Template Development/O=Lotus Notes
  3914. PURSAFO
  3915. Fde!f^^
  3916. $TITLE
  3917. $Info
  3918. $$ScriptName
  3919. $Body
  3920. 12/07/95 10:31:18 AM Lotus Notes updated [-Default-]
  3921. rchiveManager
  3922. 09/29/95 12:09:14 PM Catherine Duffy/Iris updated LocalDomainServers
  3923. 09/29/95 12:09:10 PM Catherine Duffy/Iris updated -Default-
  3924. 09/28/95 08:36:04 PM Catherine Duffy/Iris deleted role ArchiveManager
  3925. 09/01/95 04:09:45 PM Lotus Notes updated [LocalDomainServers]
  3926. 09/01/95 04:09:38 PM Lotus Notes updated [OtherDomainServers]
  3927. 09/01/95 04:09:30 PM Lotus Notes updated LocalDomainServers
  3928. 09/01/95 04:09:23 PM Lotus Notes added LocalDomainServers
  3929. 09/01/95 04:09:23 PM Lotus Notes added [OtherDomainServers]
  3930. 09/01/95 04:09:23 PM Lotus Notes added [LocalDomainServers]
  3931. 09/01/95 04:09:23 PM Lotus Notes added [-Default-]
  3932. 09/01/95 04:08:35 PM Lotus Notes deleted [OtherDomainServers]
  3933. 09/01/95 04:08:32 PM Lotus Notes deleted [LocalDomainServers]
  3934. 09/01/95 04:08:30 PM Lotus Notes deleted LocalDomainServers
  3935. 09/01/95 04:08:29 PM Lotus Notes updated [LocalDomainServers]
  3936. 09/01/95 04:08:24 PM Lotus Notes updated LocalDomainServers
  3937. 09/01/95 04:08:19 PM Lotus Notes updated [OtherDomainServers]
  3938. 09/01/95 04:06:51 PM Lotus Notes deleted [-Default-]
  3939. 09/01/95 04:06:46 PM Lotus Notes updated [-Default-]
  3940. 09/01/95 04:06:38 PM Lotus Notes added [-Default-]
  3941. 09/01/95 04:06:25 PM Lotus Notes deleted [-Default-]
  3942. -Default-
  3943. [-Default-]
  3944. [LocalDomainServers]
  3945. [OtherDomainServers]
  3946. LocalDomainServers
  3947.